Using Code Coverage in Microsoft Visual Studio*
The code coverage tool provides the ability to determine how much application code is executed when a specific workload is applied to the application. The tool analyzes static profile information generated by the compiler, as well as dynamic profile information generated by running an instrumented form of the application binaries on the workload. The tool can generate a report in HTML-format and export data in both text- and XML-formatted files. The reports can be further customized to show color-coded, annotated source-code listings that distinguish between used and unused code.
To start code coverage:
- Specify settings for the various phases.
Outputwindow shows the results of the coverage and a general summary of information from the code coverage.