abenevaut/phpunit-slicer

Tool to slice PHPUnit tests files to tests suites.

0.3.3 2024-03-24 09:19 UTC

This package is auto-updated.

Last update: 2024-04-24 09:33:36 UTC


README

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