Hey Laravel Developers
When writing test cases for your application, the total number of tests naturally grows over time.
Occasionally, you may face scenarios where you'd like to run only a subset of these tests in the current run, perhaps to assess how recent code changes affect specific tests.
Running a subset of tests is often more efficient than running them all, as executing every test can be time-consuming.
No worries! If you're working with PestPHP, you can chain the only() method on test cases. This ensures that only the specified tests run when you use the php artisan test command.
Back