dotCover Web Help

dotCover records and stores coverage analysis data in coverage snapshots.

A coverage snapshot is a data unit containing code coverage statistics for all assemblies that were involved in a coverage run and had source code or PDB files available during the test run. Coverage snapshots are saved in files with the *.dcvr extensions and can be opened later with Visual Studio (with dotCover installed) or with dotCover standalone application.

For coverage of unit tests and coverage of tests on server side, assemblies that contain unit tests are also included in the coverage snapshot.

Each item within the snapshot has its own percentage of statement coverage calculated as a ratio of the number of covered statements to the total number of statements. The coverage is rounded to the nearest whole percent.

Once you open a coverage snapshot from a file or finish a coverage test run, the snapshot is visually displayed in the Coverage Results Browser or in the Coverage area of the Unit Test Sessions window .

Note

In a coverage snapshot, dotCover records local paths to assemblies and source files. However, if you open the snapshot in another computer and want to visualize code coverage in files and navigate to covering tests, dotCover will try to remap the paths. If it fails to do so and you have incorrect results for these actions, you can disable mapping by clearing the Auto map source file paths in snapshots check box in dotCover Options | Environment | General.