dotCover 2020.1 Help

Set up Coverage Filters

Sometimes, you may need to limit the scope of coverage analysis. For example, this makes sense if you participate in development of a large application with multiple projects and thousands of tests. In this case, you don't need to analyze coverage of all projects (types, type members) in the solution but only of those that are related to a particular feature. Another example is reducing the "noise" of a coverage tree by excluding the nodes (namespaces, classes, methods) you're not currently interested in. In all such cases, you should apply coverage filters.

There are two main filter types:

  • Runtime coverage filters: dotCover applies these filters during a coverage session. Use them to reduce session time: the less code dotCover has to analyze, the faster the session will end.

  • Coverage results filters: dotCover applies these filters to coverage results (coverage tree) after the coverage session is over. Use them to exclude nodes you don't want to see at the moment.

You can configure the filters on the Cover | Filtering page of dotCover options (Alt+R O).

Last modified: 05 August 2020