Working with code coverage results

From the Code Coverage Results view, you can determine whether a code coverage result met the code coverage threshold criteria, view results not in the workspace, view remote results, sort the results by state, name, level or date, open or generate a code coverage report for a previous result, import or export a result, rename or delete a result from the workbench, merge results, and view coverage in a source view of your code.

Before you begin

Accessing the code coverage results view

About this task

Determining whether a result met the code coverage threshold criteria

The Code Coverage Results view lists the results of your code coverage results and displays their name, status, coverage, level, analysis date and any additional information.

Code Coverage Results view

The status icon shown in the second column indicates whether the report meets the coverage thresholds set in the code coverage preferences page. A green check mark indicates that the threshold criteria was met, an exclamation mark on a red background indicates that one or more of the acceptance thresholds was not met, and the question mark icon conveys that the state is unknown. A state becomes unknown as a result of changing the threshold level, until the computation of the reports contents completes, or if there is some unknown error with the report. The state of a remote result location may be unknown if the result has not been opened.

Sorting results

The results can be sorted by status, name, level, or analysis date. To sort the result, click on the header of the desired column in the Code Coverage Results view to toggle the sort order. The preceding screen capture shows a sort by date with the most recent result shown first.

Note: Results are only sorted within their result location.

Opening a code coverage report for a previous result

Procedure

Rename a result from the workbench

Procedure

To rename a result from the workbench: select the result to rename, right-click and select Rename.

Delete a result from the workbench

Procedure

To delete one or more results: select one or more results to delete, then right-click and select Delete. The data files corresponding to the results will be deleted. Alternatively, select the desired results and press the Delete key.

View result properties

Procedure

To view a result properties: select the result, then right-click and select Properties. The Properties dialog appears with the result properties. You can also use the Properties view to view a result's properties.

Opening the Code Coverage Preferences page

Procedure

To open the code coverage preferences page: go to the view menu and select Preferences....

Feedback