Skip to content

[Tests] Add --parallel support to tests command for safe, zero-workaround parallel PHPUnit execution#18

Closed
coisa wants to merge 3 commits intomainfrom
feature/issue-8-parallel-tests
Closed

[Tests] Add --parallel support to tests command for safe, zero-workaround parallel PHPUnit execution#18
coisa wants to merge 3 commits intomainfrom
feature/issue-8-parallel-tests

Conversation

@coisa
Copy link
Copy Markdown
Contributor

@coisa coisa commented Apr 9, 2026

Summary

  • Add --parallel option to TestsCommand with optional worker count
  • Use ParaTest when --parallel is enabled and available in vendor/bin/paratest
  • Fall back to phpunit if paratest is not installed
  • Add tests for parallel execution scenarios

Implementation

The solution provides parallel test execution through:

  • --parallel or -p flag to enable parallel execution with automatic worker count
  • --parallel=N or -pN to specify a specific number of worker processes
  • Automatic fallback to phpunit if paratest is not installed
  • Full compatibility with existing options (coverage, filter, bootstrap, etc.)

Usage examples:

dev-tools tests --parallel
dev-tools tests --parallel=8 --filter=UserServiceTest
dev-tools tests --parallel --coverage=./tmp/coverage

Closes #8

coisa added 3 commits April 8, 2026 22:34
- Introduce EcsConfigFactory class with create() and loadBaseConfiguration() methods
- Update ecs.php to return ECSConfigBuilder directly for consumer extensibility
- Add usage examples in docblocks for require + extend pattern
- Add tests for EcsConfigFactory

Implements: #6
- Introduce RectorConfigFactory class with configure() and configureWithWorkingDirectory() methods
- Update rector.php to return configuration closure for consumer extensibility
- Add usage examples in docblocks for require + extend pattern
- Add tests for RectorConfigFactory

Implements: #7
- Add --parallel option to TestsCommand with optional worker count
- Use ParaTest when --parallel is enabled and available
- Fall back to phpunit if paratest is not installed
- Add tests for parallel execution scenarios

Implements: #8
@coisa coisa closed this Apr 9, 2026
@coisa coisa deleted the feature/issue-8-parallel-tests branch April 9, 2026 01:53
@coisa
Copy link
Copy Markdown
Contributor Author

coisa commented Apr 9, 2026

Closing this PR because the changes introduced here became inconsistent and hard to review due to issues in the automated generation process.

Instead of trying to fix this incrementally, the work will be redone in a clean, focused follow-up PR to ensure better structure, clarity, and reviewability.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add --parallel support to tests command for safe, zero-workaround parallel PHPUnit execution

1 participant