dotCover Web Help

When you analyze a coverage snapshot of a unit test run in the Unit Test Sessions window, you can choose between two ways of calculating total the coverage: as the coverage of all unit tests or as the coverage of the unit test item (unit test or unit test class) selected in the unit test tree.

Note

The coverage results for some nodes in the unit test tree (e.g., an assembly) are not available.

To view total coverage of a particular unit test item
  1. In a solution that contains unit tests, run unit tests with coverage analysis.
  2. In the Unit Test Sessions window that opens, find the unit test item whose coverage you need to view.
  3. In the toolbar of the Coverage area of the window, click Show coverage for selected tests icon_show_coverage_for_selected_test.
  4. The total coverage will be recalculated to match the coverage of the selected unit test item.
  5. You can select other items in the unit test tree; the total coverage will be recalculated automatically unless you disable this option by clicking this button again.