Skip to main content
Version: 1.x

Parallel Testing

note

Parallel unit testing is currently in beta testing. Please let us know any issues you may come across.

By default, PHPUnit runs tests sequentially. This can be slow, especially if you have a lot of tests. To speed up your test suite, you can run tests in parallel. To get started, you'll need to install the paratest package:

composer require --dev brianium/paratest

You can then call the vendor/bin/paratest binary to run your tests in parallel:

vendor/bin/paratest

You should also update your composer.json file to include a script to run your tests in parallel:

{
"scripts": {
"test": "vendor/bin/paratest"
}
}