Yes. Use the --parallel option with --processes:
php artisan test --parallel --processes=8
Each process creates its own test database.
Edit. You need the brianium/paratest package for parallel tests:
composer require brianium/paratest --dev
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
We have a legacy application that can't use seeding (and it would take forever to seed it properly anyway). We have thousands of tests and it takes a long time to run them.
All tests are using the DatabaseTransactions trait.
Is is possible to run tests in parallel? Like 8 or more threads.
Please or to participate in this conversation.