承接 cleatsquad/module-parallel-tests-plus 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

cleatsquad/module-parallel-tests-plus

最新稳定版本:1.0.0

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

Latest Stable Version Total Downloads Latest Unstable Version License

✨ Features

  • 🚀 Parallel execution of Magento developer tests.
  • 🔧 Adds --processes to set worker count.
  • 🧵 Adds --runner option (default: WrapperRunner).
  • ⚙ Fully compatible with Magento’s native --arguments passthrough.
  • 🧩 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)

统计信息

  • 总下载量: 2
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-11-22