PHPUnit Pretty Result Printer Package

PHPUnit Pretty Result Printer Package

PHPUnit is the workhorse for PHP developers everywhere, it’s a tool we all use and use constantly. Because of this shouldn’t we want the output to visually appealing and look awesome? Mike Erickson thought so and created a Pretty Result Printer package that extends the default PHPUnit Result Printer to make it look better. Here is an example:

If you’d like to try this out installation is simple, just require the package:

composer require --dev codedungeon/phpunit-result-printer

Add this to your PHPUnit configuration XML:

<?xml version="1.0" encoding="UTF-8"?>
  <phpunit printerClass="Codedungeon\PHPUnitPrettyResultPrinter\Printer">
    // ....
  </phpunit>

Or run PHPUnit with the printer argument:

phpunit --printer=Codedungeon\\PHPUnitPrettyResultPrinter\\Printer

I know all design is subjective but I personally love the results of this, especially when you are in a code base with a lot of tests. Check it out on Github for more information and happy testing!

Filed in: Laravel Packages / PHPUnit

Newsletter

Join 31,000+ others and never miss out on new tips, tutorials, and more.

Laravel News Partners

Laravel Jobs

👉 Looking for Senior Back-End Laravel API Developer - Immediate (Full-time Contractor) 🎉
Remote
ApproveMe.com // The Document Signing Experience™
Senior Laravel Developer
Remote
FPV Exchange
Senior Full-Stack Developer
Remote, USA Only
Givebutter
Sr. Software Engineer
Nashville, TN
Clarus Care
Full Stack Web Developer
Greenville, TX (or Remote, US)
Innovation First International, Inc.