While recording videos for the Testing Laravel video course, I became a big fan of Pest, a test runner that tries to optimize the developer experience. I’m now using Pest as the default for testing new packages and projects.
I’ve also converted a couple of existing testsuites from PHPUnit to Pest. Luckily, this is a very easy process. In this video I’ll show you how to get started. You’ll see that it only takes a couple of minutes.
Instead of doing the conversion manually, you could opt to let Laravel Shift convert a PHPUnit testsuite to Pest automatically.
In our course, that are a couple of videos that touch upon specific Pest features:
- Using datasets
- Using shared datasets
- Writing custom expectations
- Higher order tests
- Higher order expectations
- Code coverage
- Using the watch plugin
In this stream on YouTube, you can see my rehearsal in preparation of this video.