[Expand]General Information
[Expand]WinForms Controls
[Expand]ASP.NET Controls and MVC Extensions
[Expand]ASP.NET Bootstrap Controls
[Expand]ASP.NET Core Bootstrap Controls
[Expand]WPF Controls
[Expand]Xamarin Controls
[Expand]Windows 10 App Controls
[Expand]Office File API
[Expand]Reporting
[Expand]Report and Dashboard Server
[Expand]Dashboard
[Expand]eXpressApp Framework
[Expand]eXpress Persistent Objects
[Collapse]CodeRush
  System Requirements
  Improve Performance
 [Expand]Features by Language
 [Expand]Getting Started
 [Expand]How To
 [Expand]Coding Assistance
 [Expand]Navigation and Search Tools
 [Expand]Static Code Analysis
 [Expand]Visualization Tools
 [Expand]Code Style Assistance
  Building Assistance
  Debugging Assistance
 [Expand]Refactoring Assistance
 [Collapse]Unit Testing Assistance
   Testing Framework Configuration
   Running and Debugging Tests
   Test Execution Output
   Working with Test Sessions
   Code Coverage Calculation
   JavaScript Test Runner
   Unit Test Builder
 [Expand]Decompiling Tools
 [Expand]Configuration Options
 [Expand]Extensibility
[Expand]CodeRush Classic
[Expand]Cross-Platform Core Libraries
[Expand]Tools and Utilities
 End-User Documentation
View this topic on docs.devexpress.com (Learn more)

Code Coverage Calculation

CodeRush provides a powerful tool for analyzing code coverage. Use this tool 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.

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.

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.

Is this topic helpful?​​​​​​​