limedeck/phpunit-detailed-printer
A custom PHPUnit printer that replaces the default output with more informative, readable test names plus per-test execution time, so you can spot failures and slow tests quickly while the suite runs. Compatible across PHPUnit versions.
Install via Composer: composer require --dev limedeck/phpunit-detailed-printer. Then configure PHPUnit to use the printer in phpunit.xml by adding <printer class="LimeDeck\PHPUnit\Printer" /> inside <phpunit><printer> tags. Run your tests—e.g., ./vendor/bin/phpunit—and you’ll immediately see richer output with test names, pass/fail status, and visual markers (✅, ❌, ⚠️, ⏭️) without modifying any test code.
For PHPUnit 9+ projects, ensure your composer.json explicitly requires this package as a dev dependency (no breaking changes in 6.0.0).
<logfile type="junit">), using detailed-printer for visual diagnostics and JUnit for reporting dashboards.phpunit.xml.dist (default printer) and phpunit.local.xml (with detailed-printer) for team consistency vs. local preference. Tip: For PHPUnit 9+, leverage the <extensions> tag to dynamically load the printer without XML overrides if needed.phpunit.xml for PHPUnit 9+ to avoid autoloading delays:
<phpunit>
<extensions>
<extension class="LimeDeck\PHPUnit\Printer"/>
</extensions>
</phpunit>
--force-ansi or use phpunit-detailed-printer only in non-CI local setups unless log readability is critical.Printer.php. For minor tweaks (e.g., adding test duration), consider overriding output via custom logging listeners or PHPUnit 9+ event listeners.phpunit.xml <printer>-level <log type="tap" /> or -v verbosity flag for full details when needed.phpunit --printer=LimeDeck\\PHPUnit\\Printer for one-off runs.--testdox or third-party alternatives like phpunit/printer.How can I help you explore Laravel packages today?