Support the ongoing development of Laravel.io →
Views Testing

So I've been going through a lot of the testing tutorials on the net, especially on LaraCast, and have learned how to test Models and Controllers. But I don't see mention of how to test views, especially Blade views. What is the current workflow on this?

Thanks! ~Mike

Last updated 2 years ago.
0

3 years without any comments guys? I think this is good topic.

0

I don't think that it is possible and necessary to unit test views. But you can use Laravel Dusk for browser testing and make assertions about the actual rendered HTML.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.