PHPUnitBubble Report

This visualization tool provides a quick way to monitor your PHPUnit test suites.

With a single glance, you'll be able to identify the slowest tests, hopefully helping you to improve the overall execution time of your tests!

How to generate your own report?

To generate a report, execute your PHPUnit test suite including the --log-junit argument, such as:

phpunit --log-junit report.xml

~ or ~

php artisan test -p --log-junit report.xml

Once you have generated your report.xml file you can either or if you prefer copypasta it into the or keep reading below about downloading the stand-alone HTML file.

About the stand-alone HTML file

If you want to re-use this chart in your own application download this file and place it in the same directory as your report.xml file.

This file is self-contained, exactly like this page (check the source) but without the form, and the initial symfony2.json loading.

If you want to parametrize it, or re-use it in your own projects you can find all technical details in the README file.

Future Plans

Ideally this all gets wrapped up into a Laravel package… If this something you want to see happen, please consider sponsoring me on GitHub.

Licence

This project is released under the MIT licence - thanks to Marmelab and Moof.

It means you can blow unlimited bubbles in all your projects, with the only obligation to embed the original licence file into your fork.