mrmadclown / phpunit-pretty-printer
This package is abandoned and no longer maintained.
The author suggests using the diablomedia/phpunit-pretty-printer package instead.
A PHPUnit result printer that shows per-file test progress and execution times
v4.0.1
2019-03-26 00:10 UTC
Requires
- php: ^7.1
- phpunit/phpunit: ^7.1 || ^8.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.11
- nazar-pc/phpt-tests-runner: ^1.4.0
- phpstan/phpstan: ^0.11.0
This package is auto-updated.
Last update: 2023-01-11 16:09:24 UTC
README
A PHPUnit result printer that shows per-file test progress and execution times.
Installation
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:
php vendor/bin/phpunit --printer 'DiabloMedia\PHPUnit\Printer\PrettyPrinter' tests/
To see per-test execution times, use the --debug
flag:
php vendor/bin/phpunit --printer 'DiabloMedia\PHPUnit\Printer\PrettyPrinter' --debug tests/
Optionally, you can add it to your project's phpunit.xml
file instead:
<phpunit bootstrap="bootstrap.php" colors="true" printerClass="DiabloMedia\PHPUnit\Printer\PrettyPrinter">
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.