dotCover | Toggle Code Highlighting
To visualize coverage data, dotCover can highlight statements covered and uncovered in the current snapshot right in Visual Studio editor.
You can configure the colors that dotCover uses for this highlighting in dotCover Options | Environment | Highlighting.
- Open the snapshot that you want to analyze in the Coverage Results Browser or in the Coverage area of the Unit Test Sessions window .
- Click Highlight code on the toolbar of the window where the current snapshot is open.
dotCover will highlight code in all assemblies that are included into the current coverage
Covered statements are highlighted in green, uncovered statements - in red, the code that does
contain any statements (e.g. type and method signatures, empty getters and setters) is not
- To enable or disable highlighting of the current snapshot, choose dotCover | Toggle Code Highlighting in the main menu or press Ctrl+Alt+K,H.
If you switch between several snapshots in the Coverage Results Browser or in the Coverage area of the Unit Test Sessions window , the highlighting does not switch automatically. To switch the highlighting for a particular snapshot, click Highlight code on the toolbar of the window where the current snapshot is open.