I use Teamcity with NUnit and dotCover. In my configuration, I exclude the specific namespace and the classes contained in it from the dotCover coverage. This part works fine, but when the assembly starts, the final report still shows the excluded assembly in the report, although the excluded assembly is considered 0%. This 0% coverage is also reflected in the total coverage percentage, so the overall picture from the report does not show the correct statistics.
How can I get excluded assemblies (or classes in this case) so that they do not appear in the coverage report?
Edit: I want to clarify that I'm not looking for a way to exclude code from dotCover, since I already know how to do this. I’m looking for a way to delete an excluded code, delete it or not appear in the report created for Teamcity.
source share