DEV Community

Discussion on: How to Automatically Run Your Laravel PestPHP Tests on Each GitHub Pull Request?

Collapse
 
bobbyiliev profile image
Bobby Iliev

I personally love it and use it for all new projects. The framework is quite new, but having in mind that the creator is a Laravel core member I would not be surprised to see it in the docs soon. It has been added as an option to Jetstream and Breeze already.

Collapse
 
leob profile image
leob

I recognize the style/syntax from the JS world, it's a BDD approach ... I'm not against it if it's an extra option in addition to phpunit, and people can choose what they like, more choices is not necessarily a bad thing.

For me the important thing to do is to always use TDD (or BDD) on projects, it has so many advantages (and with "use TDD" I mean use it right from the start, to drive the design of the codebase, not as an afterthought).

Thread Thread
 
bobbyiliev profile image
Bobby Iliev

Very good point. I've seen so many existing projects without a single test. It is always a headache to take over such projects.

Collapse
 
bobbyiliev profile image
Bobby Iliev

Inspired by your comment, I started a discussion on Twitter to gather some opinions on why people might want to switch to PestPHP. Feel free to join the discussion!

twitter.com/bobbyiliev_/status/143...

Thread Thread
 
leob profile image
leob

I'd be inclined to use it on new (greenfield) projects, not to go and rewrite my existing tests ... but, I can't really offer an educated opinion on the pros and cons as I simply don't have any experience with this new framework!

Thread Thread
 
leob profile image
leob

Hey what about Laravel Dusk (browser based testing), can that also be driven thru Pest rather than thru Phpunit? Ah here's the answer already: pestphp.com/docs/plugins/laravel#l...