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.
Please sign in to leave a comment.
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.
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.
I got it working now. Thank you very much.
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é