Skip to content

Latest commit

 

History

History
34 lines (20 loc) · 1.46 KB

README.md

File metadata and controls

34 lines (20 loc) · 1.46 KB

testdox-reduced-output-printer

Build Latest Stable Version Total Downloads License

A PHPUnit result printer based on CliTestDoxPrinter, but with reduced output line count and line length.

Readability of results is much better for assertions with huge failure message strings. If you want to see the full messages, just omit the printer class option.

Installation

composer require --dev wealthberry/testdox-reduced-output-printer

Usage

You can use the printer with a phpunit command line parameter:

php vendor/bin/phpunit --printer 'Wealthberry\TestDox\CliTestDoxReducedOutputPrinter'

Or, by adding a printerClass property in phpunit.xml:

<phpunit bootstrap="bootstrap.php" colors="true" printerClass="Wealthberry\TestDox\CliTestDoxReducedOutputPrinter">