facile-it / paraunit
paraunit
Installs: 392 133
Dependents: 12
Suggesters: 3
Security: 0
Stars: 140
Watchers: 32
Forks: 15
Open Issues: 21
Requires
- php: ^8.1
- ext-dom: *
- ext-json: *
- jean85/pretty-package-versions: ^1.5.1||^2.0.1
- phpunit/php-code-coverage: ^10.0||^11.0
- phpunit/php-file-iterator: ^4.0||^5.0
- phpunit/phpunit: ^10.5.4||^11.0
- psr/event-dispatcher: ^1.0
- symfony/console: ^4.4||^5.0||^6.0||^7.0
- symfony/dependency-injection: ^4.4||^5.0||^6.0||^7.0
- symfony/event-dispatcher: ^4.4||^5.0||^6.0||^7.0
- symfony/process: ^4.4||^5.0||^6.0||^7.0
- symfony/stopwatch: ^4.4||^5.0||^6.0||^7.0
Requires (Dev)
- facile-it/facile-coding-standard: ^1.0
- jangregor/phpstan-prophecy: dev-master as 1.1.0
- phpspec/prophecy: dev-master as 1.19
- phpspec/prophecy-phpunit: dev-master#0604e27 as 2.2.1
- phpstan/extension-installer: ^1.0
- phpstan/phpstan: 1.12.4
- phpstan/phpstan-phpunit: ^1.1
- phpunit/php-invoker: ^4.0||^5.0
- psalm/plugin-phpunit: ^0.19
- psalm/plugin-symfony: ^5.0
- rector/rector: 1.2.5
- symfony/expression-language: ^4.4||^5.0||^6.0||^7.0
- symfony/phpunit-bridge: ^6.4||^7.0
- vimeo/psalm: ^5.5.0
Suggests
- ext-pcov: A coverage driver for faster collection
- dama/doctrine-test-bundle: Useful for Symfony+Doctrine functional testing, providing DB isolation
Conflicts
- composer/package-versions-deprecated: <1.11.99
- 2.x-dev
- 2.4.0
- 2.3.4
- 2.3.3
- 2.3.2
- 2.3.1
- 2.3.0
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.x-dev
- 1.3.1
- 1.3.0
- 1.2.1
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.1
- 1.0.0
- 1.0.0-beta2
- 1.0.0-beta1
- 0.12.x-dev
- 0.12.3
- 0.12.2
- 0.12.1
- 0.12
- 0.12-BETA1
- 0.11
- 0.10.1
- 0.10
- 0.9.2
- 0.9.1
- 0.9
- v0.8.x-dev
- 0.8.3
- 0.8.2
- 0.8.1
- 0.8
- 0.8-BETA5
- 0.8-BETA4
- 0.8-BETA3
- 0.8-BETA2
- 0.8-BETA1
- 0.7.4
- 0.7.3
- 0.7.2
- 0.7.1
- 0.7
- 0.6.2
- 0.6.1
- 0.6
- 0.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4
- dev-php-8.4
- dev-fix-build
- dev-test-ci
- dev-update-psalm
- dev-symfony-6
This package is auto-updated.
Last update: 2024-10-30 14:17:06 UTC
README
Paraunit is a tool for faster executions of PHPUnit test suites. It makes this possible by launching multiple test in parallel with single PHPUnit processes.
Paraunit is developed using Symfony components.
Installation
To use this package, use Composer:
- from CLI:
composer require --dev facile-it/paraunit
- or, directly in your
composer.json
:
{ "require-dev": { "facile-it/paraunit": "^2.0" } }
Compatibility
You can use Paraunit with many versions of PHPUnit or Symfony, following this compatibility list:
Usage
Paraunit starts as a Symfony console command, but it's provided through a bin launcher; you can run it like this:
(assuming your Composer's bin dir is vendor/bin
)
vendor/bin/paraunit run
This command will launch all the tests in all your configured testsuites.
Collect test coverage
Paraunit is also able to collect the test coverage in parallel, like this:
vendor/bin/paraunit coverage --html=./dir
It automatically uses the best coverage driver available: it tries to use Pcov if available (since it's the fastest), otherwise it uses Xdebug. If neither are available, it should always be able to use PHPDbg, which is bundled in PHP core, so it should be always present. It can produce coverage in the same formats that PHPUnit provides: HTML, Clover, Cobertura, XML, Crap4j, PHP, text file and text to console.
Documentation
For more details about Paraunit and its usage, see the documentation