![]() ![]() runsettings file to exclude the following members and assemblies from code coverage analysis: ![]() Perform the following actions to specify a filter condition in the Filter Editor:ġ) Click the Show filter editor toolbar button to open the Filter Editor.Ģ) Click the drop-down button and choose the Add Condition item.ģ) Click Name and select a filter in the list.Ĥ) Choose a criteria operator and specify the operand value.įor example, you can create a filter that shows methods with test coverage between 1% and 40%:ĬodeRush allows you to export a code coverage report to HTML, XML, detailed XML or NDepend XML. ![]() You can filter the report data by name, percentage, and node kind to see items that require attention. The code coverage is 6 out of 11 statements (54.5% coverage). The Code Coverage tool window shows the percentage of statements covered by unit tests for each solution’s member.įor example, 6 of 11 statements are covered in the screenshot above. Code Coverage CalculationĬodeRush uses the statement code coverage metric to measure code coverage. Code lines highlighted in gray indicate the code is not covered by tests. Green lines in code indicate that the code is covered by tests. You can see the highlighted code lines for the selected member in the code coverage details view. The following screenshot shows “Code coverage details on the right of the report” mode:ĬodeRush highlights code lines to visualize coverage. Show code coverage details below the report Show code coverage details on the right of the report You can set the Code Coverage window to one of the following layout modes: Use the Search Box to find members in the coverage report. When all tests are completed, you can see the information about code coverage in the Code Coverage window. ![]() The CodeRush Visualize toolbar’s commands to run tests with coverage.Īfter you run tests with coverage, CodeRush invokes the Code Coverage window that updates data during test execution. The CodeRush | Test menu to run selected test(s) or all tests with coverage in the solution. Use one of the following approaches to run tests with code coverage: Option 1 This window shows which parts of your solution are covered by the unit tests and identifies untested cases. CodeRush includes the Code Coverage tool window to analyze code coverage. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |