brianium/paratest
ParaTest brings zero-configuration parallel testing to PHPUnit. Run tests across multiple processes by TestCase or Test, and combine code coverage into one report. Install via Composer and use vendor/bin/paratest with no extra bootstrap needed.
php artisan test --parallel, which already uses ParaTest under the hood in modern Laravel versions. A TPM should treat adoption as a CI productivity and developer-experience initiative, not an application architecture change.composer require --dev brianium/paratest; the binary is vendor/bin/paratest. Prefer Laravel’s parallel test command over direct ParaTest invocation unless there is a specific need, because Laravel’s runner handles environment bootstrapping, per-process test databases, and parallel-testing hooks.@internal classes and explicitly supports only the latest PHPUnit version. This creates a tight Laravel/PHPUnit/ParaTest upgrade triangle. Recent releases show PHP 8.5, Symfony 8, PHPUnit 12, sharding, TestDox, and coverage-option work, but teams must pin deliberately rather than accept broad ^7 upgrades. The reported dependents count is not a reliable adoption signal given Laravel’s transitive use of ParaTest.php artisan test --parallel, then introduce it to CI as a non-gating job. Only after flaky-test remediation should it become a required PR gate.artisan test --parallel locally; 4) isolate databases using Laravel’s parallel hooks and TEST_TOKEN/UNIQUE_TEST_TOKEN; 5) add CI non-gating run; 6) fix order dependencies and shared-state failures; 7) enable coverage/JUnit merging if needed; 8) scale process count and consider sharding for very large suites.--verbose, worker command output, and the PHPStorm helper binary. Teams should document the supported version matrix internally.TEST_TOKEN, Laravel parallel-testing hooks, parallel-safe fixtures, explicit version pins, and a rollback to sequential CI if flakiness exceeds an agreed threshold.artisan test --parallel usage; medium for teams with legacy suites that assume sequential execution. TPM-led enablement should include a short guide on parallel-safe tests, token-based isolation, and interpreting worker failures. Success metrics should include CI wall-clock reduction, flaky-test rate, developer wait time, and upgrade incidents.How can I help you explore Laravel packages today?