https://github.com/previousnext/phpunit-finder
PHP utility for finding PHPUnit test files.
https://github.com/previousnext/phpunit-finder
Last synced: about 1 year ago
JSON representation
PHP utility for finding PHPUnit test files.
- Host: GitHub
- URL: https://github.com/previousnext/phpunit-finder
- Owner: previousnext
- License: gpl-2.0
- Created: 2019-03-05T03:21:05.000Z (about 7 years ago)
- Default Branch: main
- Last Pushed: 2025-02-25T00:01:22.000Z (over 1 year ago)
- Last Synced: 2025-04-09T20:08:56.894Z (about 1 year ago)
- Language: PHP
- Homepage:
- Size: 41 KB
- Stars: 10
- Watchers: 8
- Forks: 11
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# 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.