Skip to content

A PHPUnit result printer, variant of the TestDoxCli Printer, that reduces the test failure message size for better readability

License

Notifications You must be signed in to change notification settings

WealthBerry/testdox-reduced-output-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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">

About

A PHPUnit result printer, variant of the TestDoxCli Printer, that reduces the test failure message size for better readability

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages