Coverage filter not working?
Hi,
I am trying to set up coverage filter to exclude generated code and tests.
I used
Exclude by name (All Solutions):
Assembly *Test
Assembly *Tests
Assembly *Entities
Exclude by Attribute (All Solutions):
System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute
System.CodeDom.Compiler.GeneratedCodeAttribute
While I could successfully filter the test-assemblies, the filter for the Entities didn't work. The coverage results still contain the namespace
Something.ServicePlugin.Dal.RMEntities
What am I missing?
Using dotCover 2.1.471.44 (Trial)
Regards
Thomas Kowalski
Please sign in to leave a comment.
Hello Thomas,
Could you please make sure that there are no assemblies with names that don't end with "Entities" which contain "Something.ServicePlugin.Dal.RMEntities" namespace?
To filter out all entities from a certain namespace from any assembly you should specify a class filter, e.g.: Assembly *, Class *Something.ServicePlugin.Dal.RMEntities*, Method *.
Please let me know whether it helps.
Regards.
Using the class-name instead of the assembly-name worked. However I still don't understand why.
Regards
Thomas