News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Christian Weiske's Blog:
Visualizing PHPUnit runs
May 02, 2011 @ 10:19:48

During some of his development, Christian Weiske found the tests for a project he was working on too slow for comfort and figured there had to be a way to find the root cause:

Running the specific test cases for the part of the application you're working on is easy and fast, but that does not tell you when changes in part A of the app break part B - which happened several times, and all just because I didn't want to wait 45 seconds again and again. So a solution was badly needed; tests should be as fast as possible; preferably < 10 seconds. Before being able to make the slow tests faster, I had to find out which of the 80 tests were slow.

Tools like Jenkinks give more detail on test runs, but a normal PHPUnit install won't. So, he came up with a method that uses Phing's phpunitreport task to generate extra reporting easily. Here's some example screenshots: test results summary, test detail and single page views of the same sort of data.

0 comments voice your opinion now!
visualize phpunit runtime phing phpunitreport report


blog comments powered by Disqus

Similar Posts

Chris Shiflett\'s Blog: JApacheCon (Power PHP Testing talk)

Sebastian Bergmann's Blog: RC2 Is The New RC1 (PHPUnit)

Sebastian Bergmann's Blog: PHPUnit 3.1.0 (Release Announcement)

Symfony Blog: New in symfony 1.2: Small things matter (2)

Cyberlot's Blog: PHP bugs, whos responsible? Do they even read them?


Community Events





Don't see your event here?
Let us know!


framework laravel library install voicesoftheelephpant podcast series symfony deployment interview opinion package community language bugfix introduction release list api tips

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework