News Feed
Jobs Feed
Sections




News Archive
Christian Stocker's Blog:
Visual Code Coverage with SimpleTest
January 05, 2006 @ 07:09:11

On Christian Stocker's blog today, there's his experience with testing his code coverage visually with the help of the SimpleTest framework.

For our CMS, we use SimpleTest as testing framework. We used it in other projects, and as you should never change a running team, we sticked to that for Flux CMS as well.

But one thing I saw over at PHPUnit2 and badly wanted to have, was the Code-Coverage Analysis. The pure coverage data comes from Xdebug PHPUnit2 "just" displays it nicely based on that. A quick look into the code revealed that it was easy to just use the CodeCoverage classes and so I integrated it in our testing framework.

He gives his example of how the code coverage looks, and gives the eight lines of code that it took to implement it - nice and simple...

0 comments voice your opinion now!
simpletest phpunit2 unit test code-coverage analysis simpletest phpunit2 unit test code-coverage analysis


blog comments powered by Disqus

Similar Posts

PHPBuilder.com: Create a Unit Conversion Application w/the Zend_Measure Component

Ilia Alshanetsky's Blog: 5.2.2RC1 Released for Testing

Jim Plush\'s Blog: Cyclomatic Complexity for the Test Driven PHP\'er

Jim Plush\'s Blog: Cyclomatic Complexity for the Test Driven PHP\'er

Job Posting: Ibuildings Seeks Test Engineer (Netherlands)


Community Events











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


development opinion unittest testing language tool introduction framework functional release code interview example composer community object zendframework2 conference series podcast

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