How to keep NCover data

We have a classic build with .Net MsBuild and TeamCity (build, unit test + coverage with NCover, etc.). In this build, a MsBuild target is running NDepend. I would like to provide the NCover data to NDepend. Despite my effort, I'am unable to get such data from NCover. I tried to specify a path to NCover (with the //xml command line tag) for the data, but no data is generated. As there is no error, I assume it's TeamCity which change/overwrite this flag to get the coverage data and so build his report.
Does somebody know a way to get the coverage data without breaking the TeamCity covrage report ?

TeamCity v6.5.3, MsBuild v4, NDepend v3, NCover v3.

3 comments
Comment actions Permalink

Hi Laurent,

I don't have much direct experience integrating NCover with NDepend, but I found a recent NCover Forum post that may help you. The post is about filtering assemblies, but it also contains MSBuild script tasks for NCover (with NUnit) and NDepend, so that you can see how they should be set up:

http://www.ncover.com/forum/show_topic?id=1180

I hope this helps -- please let me know if you have more questions and feel free to contact me directly at support@ncover.com.

Best regards,

Russell H
NCover Support

0
Comment actions Permalink

Hi Russel,

It's exactly what I would like to avoid: moving the build logic to an MsBuild script. I would like to continue to relayd on TeamCity build step. So I need to know how to get the NCover data which has bee gathered by TeamCity. It's not at all an NCover issue, it's related to TeamCity.
Thank you for your help anyway :)

0
Comment actions Permalink

Hi Laurent,

Understood. Sorry I wasn't actually any help. Have you already set up MSBuild as described here?

http://docs.ncover.com/how-to/continuous-integration/teamcity/

I just want to understand how you're trying to use NCover, so that we can improve our documentation.

Thanks!

Russell H

0

Please sign in to leave a comment.