We recommend using Visual Studio 2017

Analyzing code coverage results

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

You can measure how much of your project's code is covered by unit tests by using code coverage. The resulting data is displayed on a line-by-line or even a block-by-block basis. To do this, configure test runs to produce code coverage data. For more information, see Configuring code coverage.

You can view the resulting data in the Code Coverage Results window and in your source code files.


Associated Topics

To see the code coverage results for a project: You can observe the results of running tests on your project in the Code Coverage Results window.

Merging code coverage results data: You can merge the code coverage data obtained through multiple test runs, or from multiple testers. You can also save the result of merging code coverage data, and re-import it.