PHP lib for finding and outputting all tests from a phpunit.xml config file.
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.
Install with composer:
composer require --dev previousnext/phpunit-finder
You can run with defaults using:
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
phpunit-finder assumes you have a phpunit.xml in the root of your project. You can
override the path using the
It also assumes your tests bootstrap file is found in
You can override this with the