Excluding attribute from the dotCover console

327 Views Asked by At

I'm trying to use the AttributeFilter option from the command-line to remove classes with the [ExcludeFromCodeCoverage] attribute.

So far I've tried:

/AttributeFilters=-:ExcludeFromCodeCoverageAttribute
/AttributeFilters=-:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute
/AttributeFilters=-:^System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute$

None of these work.

1

There are 1 best solutions below

0
On

/AttributeFilters=System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage

You don't use the -: or +: syntax in the /AttributeFilters option only the /Filters option.