Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8555577
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T15:09:16+00:00 2026-06-11T15:09:16+00:00

As of dotCover 2.0, there is support for attribute filters. This basically allows you

  • 0

As of dotCover 2.0, there is support for attribute filters. This basically allows you to exclude any code marked with a certain filter from your coverage report. There is okay documentation out there for this usage, notably on the TeamCity documentation where they cover integration with dotCover.

The basic syntax used there is -:myAttributeName or -:module=myModuleName;myAttributeName to exclude an attribute or an attribute within a module respectively.
This doesn’t work when passed to the dotCover console runner. The coverage report still shows the excluded code.

Does dotCover support the attribute filter in its console (I assume so since TeamCity basically just passes the arguments through to the console runner) and is there a known syntax that works for it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-11T15:09:18+00:00Added an answer on June 11, 2026 at 3:09 pm

    Attribute filters specification differs a bit in dotCover console runner and in TeamCity.
    In dotCover you can use the following command line key: /AttributeFilters=ARG

    ARG has the following syntax: attribute1;[module]attribute2;...
    where “attribute” is fully qualified attribute type name (asterisk wildcards (*) are supported), and “module” is an optional parameter which specifies name of the assembly where attribute was defined.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I wonder what options there are for .NET (or C# specifically) code coverage, especially
I'm using dotCover to analyze code coverage of my unit tests, and I'm getting
What should go in the Function mask field in dotCover's Edit Coverage Filter dialog?
I have been happily using VS 2010 for several weeks without any performance problems.
Ncrunch shows lines of code, which are not covered by tests as black bubbles...
I am having problems running Nunit tests from teamcity using Nunit build runner. Until
This is all i'm looking for at a high level: The ability to run
My build fails with this log: [12:13:40]: Checking for changes [12:13:41]: Clearing temporary directory:
Can anyone please suggest me a good .net code coverage plugin for Visual Studio
I recently installed the Windows Phone 7 SDK with an existing Visual Studio Ultimate

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.