We are excited to share that Pest 4 is now available! Get started with browser testing in Pest using modern tools, visual testing, and more!
Browser testing in Pest 4 unlocks the ability to run tests in your browser using modern tools like Playwright without having a separate test suite for unit and end-to-end tests. Combining browser and unit testing creates cohesion in your testing framework and unlocks new possibilities!
New Features in Pest 4
- End-to-end browser testing -
- Visual testing
- Device testing
- Code coverage with browser and unit tests
- Tinker sesssions mid-test
- Test sharding for parallel test runs in CI
- And more...
Check out the official announcement post for in-depth coverage of all the new exciting features available in Pest 4! You can install Pest 4 right now on a new Laravel project using the installer and the --pest flag (or use the default prompt):
laravel new my-project --pest
You can also install v4 on a new project by requiring it via composer:
composer require pestphp/pest --dev --with-all-dependencies./vendor/bin/pest --init
The Upgrade Guide will help you get existing Pest v3 applications using the latest Pest 3 features in no time. Be sure to check out the latest documentation, including Browser Testing to get up to speed on the latest Pest 4 features.