https://github.com/diablomedia/phpunit-pretty-printer
A PHPUnit result printer that shows per-file test progress and execution times
https://github.com/diablomedia/phpunit-pretty-printer
phpunit
Last synced: 23 days ago
JSON representation
A PHPUnit result printer that shows per-file test progress and execution times
- Host: GitHub
- URL: https://github.com/diablomedia/phpunit-pretty-printer
- Owner: diablomedia
- License: mit
- Created: 2016-02-16T17:43:13.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2023-12-13T20:33:17.000Z (over 1 year ago)
- Last Synced: 2025-03-30T06:08:01.093Z (about 1 month ago)
- Topics: phpunit
- Language: PHP
- Size: 96.7 KB
- Stars: 78
- Watchers: 6
- Forks: 13
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpunit-pretty-printer
[](https://github.com/diablomedia/phpunit-pretty-printer/actions?query=workflow%3ABuild+event%3Apush)
[](https://packagist.org/packages/diablomedia/phpunit-pretty-printer)
[](https://packagist.org/packages/diablomedia/phpunit-pretty-printer)
[](https://packagist.org/packages/diablomedia/phpunit-pretty-printer)A PHPUnit result printer that shows per-file test progress and execution times.
## Installation
```bash
composer.phar require --dev diablomedia/phpunit-pretty-printer
```## Usage
**It's suggested to use the phpunit installed by composer.**
You can specify the printer to use on the phpunit command line:
```bash
php vendor/bin/phpunit --printer 'DiabloMedia\PHPUnit\Printer\PrettyPrinter' tests/
```To see per-test execution times, use the `--debug` flag:
```bash
php vendor/bin/phpunit --printer 'DiabloMedia\PHPUnit\Printer\PrettyPrinter' --debug tests/
```Optionally, you can add it to your project's `phpunit.xml` file instead:
```xml
```
## Screenshots
Default output:

Debug output showing time to run:

## Acknowledgements
Inspiration for the default output was taken from https://github.com/adm-husker/kujira-phpunit-printer.