Skip to content

Latest commit

 

History

History
51 lines (37 loc) · 1.4 KB

README.md

File metadata and controls

51 lines (37 loc) · 1.4 KB

PHPUnit-slicer

Tool to slice PHPUnit tests files to tests suites.

how-to

Install

In PHP project

composer require --dev abenevaut/phpunit-slicer

Usage

vendor/bin/phpunit-slicer slice 4 ./phpunit.xml.dist ./phpunit.xml ./tests

Globally

composer global require abenevaut/phpunit-slicer

Usage

phpunit-slicer slice 4 ./phpunit.xml.dist ./phpunit.xml ./tests

Use cases

vendor/bin/phpunit --testsuite sliced-testsuite-0 --configuration phpunit.xml
vendor/bin/pest --testsuite sliced-testsuite-1 --configuration phpunit.xml
php artisan test --testsuite sliced-testsuite-2 --configuration phpunit.xml
php laravel-zero-project test --testsuite sliced-testsuite-3 --configuration phpunit.xml

Build

php phpunit-slicer app:build phpunit-slicer
php phpunit-slicer app:build phpunit-slicer --build-version=0.0.X

Licensing