Skip to content
PHP utility for finding PHPUnit test files.
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
src
tests
.gitignore Initial commit Mar 5, 2019
LICENSE.txt
README.md
composer.json Adds finder Mar 5, 2019
phpcs.xml
phpunit-finder
phpunit.xml

README.md

PHPUnit Finder

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.

You can’t perform that action at this time.