The Coverage Navigator view

The Coverage Navigator view displays, in tree format, an overview of line-level code coverage for each package, class, and method in a profiling resource, as well as a summary for the entire resource.

To display the Coverage Navigator view, right-click a profiling resource entry in the Profiling Monitor, then select Open With > Coverage Details; this command displays both the Coverage Navigator view and the Annotated Source view. Data for the resource must have been collected with a profiling set that included the Method and Line Code Coverage profiling type.

Note: If you have collected coverage data for multiple profiling runs, the results are merged automatically at the host level and above with data collected. To display the Host profiling resource, open the Profiling Monitor drop-down menu and, if the Hide Host command is preceded by a checkmark, click the command to remove the checkmark. You can now open the coverage views for the host-level profiling resource.

A small bar graph

Coverage Navigator coverage indicator to the left of each entry in the Coverage Navigator shows the percentage of line-level coverage for the entry. The segment on the left, colored green by default, represents the lines that were exercised. The segment on the right, colored red by default, represents the lines that were not exercised. Hovering the cursor over a bar graph displays a tool tip specifying the exact percentage of lines covered for that entry.

The following symbols are used in the tree:

Symbol Description

Coverage Navigator summary icon

Summary

Coverage Navigator package icon

Package

Coverage Navigator class icon

Class

Method

No visible descendants icon

Entry can be expanded with a click

All immediate descendants visible icon

Entry can be collapsed with a click

The following toolbar buttons and menu commands appear in the Coverage Statistics view:

Toolbar Button Command Description

Coverage Navigator lexical sort button

Sort by Alphabetical Order

Sorts entries within groups in ascending alphabetic order. A second click restores the initial sort order. The order is case-sensitive, with uppercase letters lower in the sorting order than lowercase letters.

Coverage Navigator coverage rate sort button

Sort by Coverage Rate

Sorts entries within groups according to line level coverage rates, with the least thoroughly covered items first. A second click restores the initial sort order.

Pop-up menu

Open Source

Displays the source code, if available, for the selected item. Source code is available only if you are profiling a Java project that is currently open in the Java perspective.

Note: If this view reports No data available for display after you have collected line and method coverage data, flush the data manually for subsequent runs.

 

Parent topic

Code coverage monitoring user interface reference