TeamCity + NAnt + Code coverage

Hi, now when TeamCity Professional is free I guess there will be a lot of shops trying it. We have most of our projects configured with NAnt and integration with TeamCity was simple.

However I found out that I can't run code coverage using NCover. Is it just a configuration or is this not supported at all? If it is not supported will it be possible to add this to TeamCity? NCover is a standard tool in .NET development and it would be nice to have that integrated to TeamCity.

Thanks,
David.

4 comments

I got coverage working, I ran ncover with mbunit in the nant scripts though.
I then just imported the generated Ncover html page.
and added the following to the TeamCity configuration:
<report-tab title="Code Coverage" basePath="ncover" startPage="CoverageSummary.html" />
as the artifacts imported were /ncover/CoverageSummary.html
and some other artifacts too.

This gave me a tab on the build results page with Code Coverage and showed the ncover result when clicked.

0

Just to add to Owen's post, check out http://www.jetbrains.net/confluence/display/TCD3/IncludingThird-PartyReportsintheBuildResults which explains what you need to do to add a custom report, custom stats and modify the build label.

0

I got it working now. Thank you very much.

0

Hi

I made a full description of the steps I needed to integrate NCover with Team City on my blog:
http://weblogs.asp.net/lkempe/archive/2008/03/30/integration-of-ncover-into-team-city-for-tech-head-brothers.aspx

Hope it helps

Regards
Laurent Kempé

0

Please sign in to leave a comment.