Laravel - TDD

Pest v2 New Features and Release Date

The release of Pest v2 will be release March 20th 🎉 and it's bringing many exciting new features such as retrying testing, profiling slow tests, support for the new arch plugin, and much more. One of the best things about Pest v2 is that it contains no breaking changes, so you can start using it without having to modify any of your Pest v1 (or PHPUnit) tests.

  • Pest Arch plugin
  • Retry failed tests
  • Profiling slow tests
  • Intercepting expectations
  • Writing todo's in your test suite
  • Compact printer output

To showcase these amazing new features, Freek Van der Herten has created free videos for each of them. The videos cover everything from the new arch plugin, to retrying failed tests, to intercepting expectations, and much more.

If you're interested in trying Pest v2 right now, you can simply require Pest ^2.0 and nunomaduro/collision ^7.0 in your composer.json. You'll also need to add the right configuration for minimum-stability and prefer-stable so composer is allowed to pull in unreleased packages. With this in place, you'll download the latest dev version of Pest v2. When Pest v2 is released, this will automatically pull in the stable version.

"require-dev": {
       "pestphp/pest": "^2.0",
       "nunomaduro/collision": "^7.0",
       // ...
    "minimum-stability": "dev",
    "prefer-stable": true

In conclusion, Pest v2 is an amazing release and Nuno Maduro and his team have done a great job on it. With these new features and improvements, testing your Laravel application has never been easier.

Read more Articles