Category: Laravel, Laravel

As you may know, Laravel and PHPUnit execute your tests sequentially within a single process. However, a single process doesn’t use multiple cores; therefore, your test execution is seriously bottlenecked!

Starting Laravel v8.25, you may use the built-in test Artisan command to run your tests simultaneously across multiple processes to significantly reduce the time required to run the entire test suite.

Of course, other Laravel testing goodies - such as Storage::fake - are ready to be used in Parallel too.

To get started, first ensure you are running the latest version of Collision and Laravel 8: Then, include the --parallel option when executing the test Artisan command: Be sure to check out the Parallel Testing documentation at laravel.com/docs.
Newsletter

Get the latest Laravel/PHP jobs, events and curated articles straight to your inbox, once a week

Fathom Analytics | Fast, simple and privacy-focused website analytics. Fathom Analytics | Fast, simple and privacy-focused website analytics.
Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future. Achieve superior email deliverability with ToastMail! Our AI-driven tool warms up inboxes, monitors reputation, and ensures emails reach their intended destination. Sign up today for a spam-free future.
Community Partners