Please support ExcludeFromCodeCoverageAttribute

Hello,

In System.Diagnostics.CodeAnalysis namespace there is an attribute named ExcludeFromCodeCoverageAttribute which can be applied to for example classes and methods.

This is the preferred way to exclude code from coverage analysis rather than external filters.

Please add support for this in dotCover.

Svante

6 comments

Hello Svante,

Attribute filters will be a part of the upcoming dotCover 2.0 release

Regards.

0

Hello Svante,
dotCover 2.0 with attribute filters was released.
You can find additional info and download links here:
http://www.jetbrains.com/dotcover/whatsnew

0

Nice, thanks!

Follow up: How do I configure TeamCity to use an attribute filter? I'm failing miserably... I have purchased and installed dotCover 2.0 and pointed TeamCity to it, but I just can't figure out the syntax for specifying an attribute filter in the TeamCity build configuration.

0

Hello Svante!

Sorry for the late answer.
You can find info about the syntax for specifying an attribute filter in the TeamCity here: http://confluence.jetbrains.net/display/TCD7/JetBrains+dotCover
But note that this feature will available in the upcoming TeamCity 7.1, currently you could try the latest EAP build:: http://confluence.jetbrains.net/display/TW/TeamCity+EAP

Regards.

0

I am struggling with this as well, did you ever figure it out?

0

Finally this worked

-:System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverageAttribute

0

Please sign in to leave a comment.