Attribute filter syntax for code coverage (Teamcity 7.01, MSTest, dotcover)

Hi! I am trying to add an attribute filter for excluding certain methods from coverage collection. I wanted to mimic the dotcover 2 default exclusion of methods marked with ExcludeFromCodeCoverageAttribute.
This off course works when running in Visual Studio, but it is ignored in TeamCity. So I was wondering how should I specify it in TeamCity? I have tried:

-:ExcludeFromCodeCoverageAttribute

In MsTest -> .Net Coverage -> Attribute Filters: but it does not bite...

I have attached a screenshot as well.

Thanks!

/Konstantin



Attachment(s):
teamcity_coverage_attribute.png
1 comment
Comment actions Permalink

Ok so this worked:

-:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute

0

Please sign in to leave a comment.