dotCover Web Help

In Visual Studio:
dotCover | Coverage Results Browser
Ctrl+Alt+K,B

In dotCover standalone application:
File | Open Coverage Snapshot
Ctrl+O

This window allows exploring coverage snapshots obtained during a manual test session or opened from a file. You can browse multiple snapshots in several tabs.

Each snapshot can be presented in two views, which you can toggle with the buttons in the right of the toolbar:

Coverage tree

In this view, all code items are grouped in a tree structure and you can study the coverage of each code item.

Coverage Tree view in the Coverage Results Browser

In the Coverage column, dotCover uses three colors to display the coverage status:

  • Green - the percentage of covered statements within the node.
  • Red - the percentage of uncovered statements within the node.
  • Grey - the nodes not covered during the test run as they do not have executable code statements.

Hot spots

In this view, you can quickly see the potential risk areas within the snapshot. To learn more, see Detecting Hot Spots.

Hot Spots view in the Coverage Results Browser

Toolbar controls

Control Name Description

Total Coverage Shows total code coverage, in percents, of all assemblies included in the coverage snapshot.
icon_match_project_structure Match coverage results with current project structure If this button is turned on, dotCover displays only assemblies that are included in the current solution. For more information, see Matching Coverage Snapshot with Project Structure.
uts_toolbar_palette Highlight code Toggles highlighting of the code in the editor for the current coverage snapshot. For more information, see Visualizing Code Coverage.

Note

If there are several snapshots that cover the same code, the highlighting shows results either of the last test session's snapshot or of the snapshot for which you last turned on the highlighting.

icon_save Save coverage snapshot as Saves the current snapshot to a .dcvr file. For more information, see Saving and Opening Coverage Snapshot.
icon_export Export coverage reports Allows you to export the test coverage report to one of the selected formats: HTML, XML, JSON, and XML for NDepend . For more information, see Exporting Coverage Results
dotCover_coverage_tree_icon Coverage Tree Toggles the Coverage Tree view.
dotCover_hot_spots_icon Hot Spots Toggles the Hot Spots view. For more information, see Detecting Hot Spots.

Group by Allows grouping items in the window. Possible options help display items as a tree grouped by the selected categories.
tab_close Close Closes the current tab.

The context menu in this window includes two commands:

  • Exclude selected nodes
  • Exclude all nodes except selected
  • Exclude selected node and create coverage filter
These commands are rather self-explanatory; they allow excluding nodes from coverage snapshot presentation.