Code Coverage for PHPUnit

PHPUnit provides it's own code coverage interface and it could be easily integrated as custom report tab but I still want use built in Code Coverage feature. So, I have such xml report http://pastebin.com/6r38euNZ. Could I integrate in anyhow with existing Code Coverage feature ( I want it looks like this, or it's also iframe-based reports? ) using teamcity-info.xml or service messages? Thx.

2 comments

> I want it looks like this, or it's also iframe-based reports?

Yes, this is also HTML report tab.

> Could I integrate in anyhow with existing Code Coverage feature

So far the available coverage integration is report statistics values + display custom chart that we already discussed.

The only addition I can think of is teaching our HTML report generator (that we use for displaying IDEA code coverage) to understand PHPUnit coverage XML reports and then providing service message to generate the report based on the coverage XML report.
Feel free to file a feature request on this into our tracker.

0

In this case I think PHP users should just integrate PHP_CodeCoverage HTML report (it already works for me) and you don't need spend any tome to add new features to your HTML report generator.
Thanks again.

0

Please sign in to leave a comment.