A Magento 2 extension that enhances the core dev:tests:run command by enabling parallel execution of developer tests using ParaTest.
This module significantly reduces execution time for static, unit, integration and integrity tests — with zero core overrides and full CI/CD compatibility.
- 🚀 Parallel execution of Magento developer tests.
- 🔧 Adds
--processesto set worker count. - 🧵 Adds
--runneroption (default:WrapperRunner). - ⚙ Fully compatible with Magento’s native
--argumentspassthrough. - 🧩 Supports all Magento test categories:
- Static Test Suites (Default, Legacy, JS Exemplar)
- Unit Tests (Framework + Integration Layer)
- Integration Tests
- Integrity Tests
- 🛡 Clean DI override of:
Magento\Developer\Console\Command\DevTestsRunCommand - 🎯 No core hacks. Safe for production and CI pipelines.
You can install this module using Composer (recommended) or manually.
Requires Packagist entry:
composer require cleatsquad/module-parallel-tests-plus --dev
Then upgrade Magento:
bin/magento setup:upgrade
Copy the module
app/code/CleatSquad/ParallelTestsPlus
Require ParaTest
composer require --dev brianium/paratest
Then upgrade Magento:
bin/magento setup:upgrade
bin/magento dev:tests:run static --processes=8
bin/magento dev:tests:run unit --processes=3
bin/magento dev:tests:run all --processes=8
bin/magento dev:tests:run static --runner=WrapperRunner
bin/magento dev:tests:run static -c" --filter=MyTest"
bin/magento dev:tests:run integration --processes 2 -c" testsuite/Magento/Catalog/Model/ResourceModel/Category/CollectionTest.php"
Issues and pull requests are welcome.
GitHub:
https://github.com/CleatSquad/module-parallel-tests-plus
We use SemVer for versioning. For the versions available, see the tags on this repository.
This module is powered by the excellent ParaTest project:
➡️ https://github.com/paratestphp/paratest
ParaTest enables efficient parallel execution of PHPUnit tests and is essential to the performance improvements provided by this module.
- Mohamed El Mrabet - Initial work - mimou78
Released under the MIT License.
See the LICENSE.txt file for full details.
© 2025 - CleatSquad (https://cleatsquad.dev)