wealthberry / testdox-reduced-output-printer
A PHPUnit result printer, variant of the TestDoxCli Printer, that reduces the test failure message size for better readability
Installs: 13 468
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Requires
- php: ^8.0
Requires (Dev)
- phpunit/phpunit: ^9.0
This package is auto-updated.
Last update: 2025-01-29 06:52:48 UTC
README
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">