Run Pest Tests in VS Code with Better PHPUnit
Last updated on by Paul Redmond
The Better PHPUnit test runner for VS Code now supports running PestPHP tests thanks to Joe Dixon and Caleb Porzio:
The Better PHPUnit extension automatically detects if pestphp/pest
is a Composer dependency, and runs pest
instead of phpunit
, meaning you can use the same extension seamlessly for PHPUnit or PestPHP projects 🔥.
You can learn more about this extension and install it from the Visual Studio Marketplace page. Also, you can find the source code for this plugin on GitHub.
Be sure and check out the Make VS Code awesome book and course by Caleb Porzio too.
Note: if you already have this extension installed, Pest support should be available once the extension is updated (which happened automatically for me).