Exclude test assemblies from coverage report

Hello

I am running the following process:

- produce coverage.xml for each of 4 test assemblies in my solution
- merge above
- produce html report from merge output

...which works fine.  However, the report includes coverage of the test assemblies themselves, e.g.

My.Project.dll (I want these metrics)
My.Project.UnitTests.dll (I do not want these to appear on the report)

Thanks
Myles

2 comments

Ok, so I'm pretty sure I need to use the filters section of the {myCoverage}.xml file, but having trouble working out the correct syntax? Do I need the include as well as exclude section?

0

Hello Myles,
You can find details about coverage filters in the following post:
http://blogs.jetbrains.com/dotnet/2010/07/filtering-with-dotcover/
Besides that it is possible to generate sample xml configuration with dotCover console runner.
Please let us know if you'll have any questions.

0

Please sign in to leave a comment.