Skip to main content
A newer version of this page is available. .

Code Coverage Calculation

CodeRush provides a powerful tool to analyze code coverage. This tool allows you to find out how much of your code is covered with the unit tests and find the untested cases.

To start using the code coverage analyzer, run all your tests with coverage analysis support.

CRR_RunAllWithCoverage

This automatically invokes the Code Coverage window, which updates data during test execution.

When all tests are completed, you can see the information about code coverage in the Code Coverage window. Use the Search Box to find the required members in the coverage report. You can also Filter the report data to see only items that require attention. If you need to save the report, export it to HTML, XML, detailed XML or NDepend XML.

CRR_Testing_Coverage

NOTE

You can exclude specific projects from Code Coverage analysis using the *.runsettings file. Refer to the Customizing Code Coverage Analysis article's Excluding and including section for more information.