Execution and 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 2.5.8 - 3.0. dotCover installation includes 2 versions of NUnit test runners (2.6.4 and 3.0). You can choose one of them or specify a local installation of NUnit on the page of dotCover options.
- MSTest for all supported Visual Studio versions
- XUnit
- Machine.Specifications (requires an extension) To learn more about using extensions, see Managing Extensions.
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 set the Debug as the build configuration.
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.
In this section:
- Working with Unit Tests in Current Document
- Working with Unit Tests in Project or Solution
- Using Unit Test Sessions
- Working with Test Categories
- Executing Tests and Analyzing Results
- Continuous Testing
- Building Solution