dotCover 2017.3 Help

Excluding Nodes from Coverage Snapshot

When a coverage snapshot is created, you can exclude specific items from its current presentation. As soon as you do this, dotCover will instantly recalculate coverage statistics.

To exclude nodes from coverage snapshot

  1. Open a coverage snapshot in the Coverage Results Browser window or in the Coverage area of the Unit Test Sessions window/ Continuous Testing Session window.
  2. Right-click on a node in the coverage tree (or on a type if you are in the Hot Spots view) and choose Exclude selected node or Exclude all nodes except selected.
  3. Alternatively, you can choose Exclude selected node and create coverage filter. In this case, in addition to excluding the node from the current presentation of the snapshot, dotCover creates the corresponding coverage filter that will exclude this item when you run coverage analysis again.
  4. The corresponding nodes will be excluded from the coverage tree and the total coverage will be recalculated.
  5. When some nodes are excluded, the corresponding warning appears above the coverage tree. You can click Show all nodes to display the excluded nodes.
    dotCover excluded nodes
Last modified: 17 April 2018

See Also