dotCover 2016.1 Help

Visualizing Code Coverage

ReSharper | Cover | Toggle Code Highlighting
Ctrl+Alt+K,H
ReSharper_ToggleHighlighting

To visualize coverage data, dotCover can highlight statements covered and uncovered in the current snapshot right in Visual Studio editor.

To visualize code coverage in the editor

  1. Open the snapshot that you want to analyze in the Coverage Results Browser Window or in the Coverage area of the Unit Test Sessions Window/ Continuous Testing Session Window .
  2. Click Highlight code ThemedIcon.Highlighting.Screen.[Gray] on the toolbar of the window where the current snapshot is open.
  3. dotCover will highlight code in all assemblies that are included into the current coverage snapshot. Covered statements are highlighted in green, uncovered statements - in red, the code that does not contain any statements (e.g. type and method signatures, empty getters and setters) is not highlighted at all:
    %product% highlights coverage results in the ediotr
  4. To disable highlighting of the current snapshot, press Ctrl+Alt+K,H or choose ReSharper | Cover | Toggle Code Highlighting in the main menu

If you switch between several snapshots in the Coverage Results Browser Window or in the Coverage area of the Unit Test Sessions Window/ Continuous Testing Session Window , the highlighting does not switch automatically. To switch the highlighting for a particular snapshot, click Highlight code ThemedIcon.Highlighting.Screen.[Gray] on the toolbar of the window where the current snapshot is open.

To continue exploring code coverage, you can navigate to covering tests and/or locate code items in the coverage tree.

See Also

Last modified: 19 August 2016