Coverage analysis of unit tests
dotCover helps discover and run, debug or cover unit tests right in Visual Studio or using the command-line utility. The following unit testing frameworks are supported:
NUnit — dotCover installation includes 2 bundled test runners that support versions up to 2.6.4 and up to 3.11.1 correspondingly.
Custom test frameworks that use Visual Studio test adapter extensibility.
To enable VSTest adapters support, select the corresponding checkbox on the Alt+R, O).page of dotCover options (
Machine.Specifications (requires an extension).
With dotCover, you can execute a single unit test, all tests in a test class, file, project or solution. You can also execute any number of tests combined in a test session.
Analyzing code coverage of unit tests in Visual Studio is one of the major usage scenarios for dotCover. It allows developers and test engineers to quickly locate parts of code not covered with unit tests and adjust their testing activities accordingly.
Before running coverage analysis , make sure that the PDB information exists for all target assemblies. The safest choice would be to build your code with the Debug build configuration.
In this section:
- In current document
- In project or solution
- Unit test sessions
- Test categories
- Execute tests and analyze results
- Unit Test Explorer
- Unit Test Sessions
- Continuous Testing