.NET full coverage report (using nCover3)-- incorrect reports

I have some dlls and I need to get a 'full coverage report' on these dlls.I use NCover3 with additional NCover reporting argument:

CoverageReport.xml //or FullCoverageReport //op "C:\BuildAgent\Coverage"

I was able to get a full report when I specified as above.

But when I take a closer look on the report, it covers *a lot* extra stuff which are not related to my dlls anymore. For example in namespaces I have,
JetBrains.TeamCity.CoverageSupport
JetBrains.BuildServer.NUnitLauncher
JetBrains.BuildServer.CommonLoggers
JetBrains.TeamCity.NUnitCommon
JetBrains.BuildServer.NUnitLauncher-NUnit-2.4.8-plugin
...etc

Is it possible to remove these?

By the way, how do I set the report output directory to be same as the checkout directory in the build agent? My experience is that if I don't specifythe output directory (C:\BuildAgent\Coverage as shown in the reporting argument), the reports will be under C:\BuildAgent\bin\  and I think this is very wired

Thanks in advance.    Tracy.

3 comments
Comment actions Permalink

Hi Tracy!

I think that you're using TeamCity NUnit launcher when using NCover.
I'm pretty sure that NCover provides a mechanism to exclude some DLL.

What you can do is to run NUnit console directly (no more use TeamCity NUnit launcher or NUnit community task).

Regards,

Olivier.

0
Comment actions Permalink

Hi Olivier,

 

I think you might be right. But when I try to do nunit testing via NCover additional argument (under Additional NCover Arguments:), teamcity only does build and ignore everything else. I don't know why it doesn't work. It works fine under desktop with nCover comand:

"C:\Program Files\NCover\nCover.console.exe" "C:\Program Files\NUnit 2.4.8\nunit-console.exe"  HelloWorld.exe

Here is my argument:in "Additional NCover Arguments: in Teamcity..

 

"C:\Program Files\NUnit 2.4.8\nunit-console.exe"  HelloWorld.exe

Is there something I've missed?

 

Tracy.

0
Comment actions Permalink

Hi!

I'm not sure to understand your environment, TeamCity version and way of launching NCover from a Build configuration.

About the "Additional NCover Arguments", I've just seen:


Olivier.

0

Please sign in to leave a comment.