cleatsquad / module-parallel-tests-plus
Magento 2 module that enhances the dev:tests:run CLI command by enabling ParaTest parallel execution using --processes and --runner options.
Package info
github.com/CleatSquad/module-parallel-tests-plus
Type:magento2-module
pkg:composer/cleatsquad/module-parallel-tests-plus
Requires
- php: ~8.2|~8.3|~8.4
- brianium/paratest: ^7.4
- magento/module-developer: ^100.4
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0
- phpstan/phpstan: ^1.0
- phpunit/phpunit: ^10.5 || ^11.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is not auto-updated.
Last update: 2026-08-30 14:55:48 UTC
README
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 β via a clean declarative DI override (no core file patching) and full CI/CD compatibility.
Badges
β¨ Features
- π 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.
π¦ Installation
You can install this module using Composer (recommended) or manually.
πΉ 1. Install via Composer (recommended)
composer require cleatsquad/module-parallel-tests-plus --dev
Note: this package depends on
magento/module-developer, resolved viarepo.magento.com. Make sure your project has a valid Magento Marketplaceauth.jsonconfigured, otherwise Composer will fail to resolve it.
Then upgrade Magento:
bin/magento setup:upgrade
πΉ 2. Manual installation (app/code)
Copy the module
app/code/CleatSquad/ParallelTestsPlus
Require ParaTest
composer require --dev brianium/paratest
Then upgrade Magento:
bin/magento setup:upgrade
π Usage
Run static tests with 8 workers
bin/magento dev:tests:run static --processes=8
Run unit tests with 3 workers
bin/magento dev:tests:run unit --processes=3
Run all developer tests in parallel
bin/magento dev:tests:run all --processes=8
Use a custom runner
bin/magento dev:tests:run static --runner=WrapperRunner
Pass arguments to ParaTest/PHPUnit via Magento native --arguments
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"
π€ Support & Contributions
Issues and pull requests are welcome β see CONTRIBUTING.md. For security issues, see SECURITY.md instead of opening a public issue.
GitHub:
https://github.com/CleatSquad/module-parallel-tests-plus
Versioning
We use SemVer for versioning. For the versions available, see the tags on this repository.
π Acknowledgements
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.
Authors
- Mohamed El Mrabet - Initial work - mimou78
π License
Released under the MIT License.
See the LICENSE.txt file for full details.
Β© 2025 - CleatSquad (https://cleatsquad.dev)