brianium/paratest
ParaTest runs PHPUnit tests in parallel with near zero setup. Use vendor/bin/paratest to split by TestCase or individual tests, speed up CI, and combine code coverage into one report. Provides TEST_TOKEN/UNIQUE_TEST_TOKEN for per-process isolation.
TEST_TOKEN to isolate test databases per process (e.g., Laravel migrations, Eloquent queries).php artisan test).Adopt ParaTest if:
Look Elsewhere if:
"ParaTest cuts Laravel test suite execution time by 70%+ with zero engineering overhead. For a team running 2,000 tests in 15 minutes, this reduces CI wait times to 4 minutes, accelerating releases and developer velocity. The MIT-licensed package integrates seamlessly with PHPUnit—no new tools or training required. Early adopters (e.g., HypeMC) report 3x faster feedback loops, directly impacting our sprint cadence."
ROI Highlights:
*"ParaTest parallelizes PHPUnit tests out-of-the-box—just replace php artisan test with vendor/bin/paratest. Key benefits for Laravel devs:
TEST_TOKEN to spin up unique databases per process (e.g., testdb_{token}), eliminating flaky tests from shared state.TestCase (default) or individual tests (--functional), or use round-robin/random for balanced load.Trade-offs:
Quick Start:
composer require --dev brianium/paratest
./vendor/bin/paratest # Parallel by TestCase
./vendor/bin/paratest --functional # Parallel by individual test
For CI/CD: Add to your pipeline:
# GitHub Actions example
- run: ./vendor/bin/paratest --max-processes=4 --coverage-clover=coverage.clover
```"*
How can I help you explore Laravel packages today?