Skip to content
A PHPUnit result printer that shows per-file test progress and execution times
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.
src/DiabloMedia/PHPUnit/Printer
tests
.gitignore
.php_cs.dist
.travis.yml
LICENSE
README.md
composer.json
phpstan.neon

README.md

phpunit-pretty-printer

Build Status Latest Stable Version Total Downloads License

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:

phpunit-pretty-printer

Debug output showing time to run:

phpunit-pretty-printer-debug

Acknowledgements

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

You can’t perform that action at this time.