Dotcover filters

My assembly name is AAA.BBB and namespace is ccc.ddd.

I have code which should be excluded from codecoverage. I included ExcludeFromCodeCoverage attribute inside my namespace ccc.ddd. But it doesn't seem to be excluded. So I tried using filters in dotcover command

How to include my AAA.BBB assembly but exclude the ccc.ddd namespace which is under the assembly?

I tried the following -

dotcover dotnet --Filters=+:AAA.BBB;-:type=ccc.ddd.*  

dotcover dotnet --Filters=+:AAA.BBB;-:type=AAA.BBB.ccc.ddd.* 

But doesn't seem to work as expected.



Please sign in to leave a comment.