cleatsquad/module-parallel-tests-plus
Composer 安装命令:
composer require --dev 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.
关键字:
README 文档
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 — with zero core overrides 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)
Requires Packagist entry:
composer require cleatsquad/module-parallel-tests-plus --dev
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.
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)
cleatsquad/module-parallel-tests-plus 适用场景与选型建议
cleatsquad/module-parallel-tests-plus 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 4, 最近一次更新时间为 2025 年 11 月 22 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「testing」 「phpunit」 「magento2」 「developer-tools」 「paratest」 「parallel-testing」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 cleatsquad/module-parallel-tests-plus 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 cleatsquad/module-parallel-tests-plus 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 cleatsquad/module-parallel-tests-plus 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Russian Language Pack for Magento 2
HiDev plugin for PHPUnit
DPD Magento2 Shipping extension
Testing Suite For Lumen like Laravel does.
A cli tool which generates unit tests.
The PHP SDK for Checkmango
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 19
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-11-22