previousnext / phpunit-finder
PHP lib for finding and outputting all tests from a phpunit.xml config file.
Installs: 204 265
Dependents: 0
Suggesters: 0
Security: 0
Stars: 10
Watchers: 9
Forks: 10
Open Issues: 6
Requires
- php: ^7.4||^8.0
- phpunit/phpunit: ^9.5
- symfony/console: ^3.4||^4.4||^5||^6
Requires (Dev)
- dealerdirect/phpcodesniffer-composer-installer: ^0.7.1
- drupal/coder: ~8.3.12
- phpcompatibility/php-compatibility: ^9.3
This package is auto-updated.
Last update: 2024-11-19 05:54:25 UTC
README
This is a helper CLI tool that queries phpunit.xml files to get a list of test filenames and print them. This is useful if you want to split tests to run them in parallel based on timings on CI tools such as CirclCI.
Installation
Install with composer:
composer require --dev previousnext/phpunit-finder
Usage
You can run with defaults using:
./vendor/bin/phpunit-finder
By default, it will look for all test suites to scan.
You can filter by specific test suites as follows:
./vendor/bin/phpunit-finder unit kernel
Configuration
phpunit-finder assumes you have a phpunit.xml in the root of your project. You can
override the path using the --config-file
option.
It also assumes your tests bootstrap file is found in tests/bootstrap.php
.
You can override this with the --bootstrap-file
option.