Code Coverage Reports with PHPUnit 3

Sebastian Bergmann » 25 February 2006 » in New Features » 3 Comments

Inspired by the layout of the Code Coverage Analysis for PHP that is generated using gcov and lcov, I decided to improve the out-of-the-box generation of HTML Code Coverage reports for the upcoming PHPUnit 3.



The screenshot above shows the summary page for PHPUnit's own test suite. The screenshot below shows a more detailed view.



The screenshot below shows the summary page for the Framework sub-package's tests.



The following two screenshots show the coverage report for the PHPUnit2_Framework_Assert class.





You can explore the generated report yourself here.
Defined tags for this entry: , , ,

Trackback specific URI for this entry

3 Comments to "Code Coverage Reports with PHPUnit 3"

Display comments as (Linear | Threaded)
  1. Maximilian Gaß
    25/02/2006 at 13:01 Permalink
    Looks rather nice, but I think I'll stay with the Phing integration.

    Reply

  2. Michal Przytulski
    22/03/2006 at 09:03 Permalink
    hi, this looks very nice - i is posible to get it somewhere ?? i looking for new files over CVS but without result

    Reply

  3. Sebastian Bergmann
    23/03/2006 at 08:54 Permalink
    It's in CVS (and there are quite a few new files).

    Reply

1 Trackback to "Code Coverage Reports with PHPUnit 3"

  1. Sebastian Bergmann 11/05/2006 at 12:15
    Michael Lively Jr. sent me a patch last night that implements most of the bits and pieces that were still missing from the new reporting functionality in PHPUnit 3. The screenshot above shows the summary page for PHPUnit's own test suite. The scree

Add Comment


To prevent automated Bots from commentspamming, please enter the string you see in the image below in the appropriate input box. Your comment will only be submitted if the strings match. Please ensure that your browser supports and accepts cookies, or your comment cannot be verified correctly.
CAPTCHA

Submitted comments will be subject to moderation before being displayed.