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 click 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. To display the Host profiling resource, open the Profiling Monitor drop-down menu and, if the Hide Host command is preceded by a check mark, click the command to remove the check mark. 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, left uncolored by default, represents the lines that were not exercised. Pausing the cursor over a bar graph displays a ToolTip 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

Coverage Navigator method icon

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 are available 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.
Feedback
(C) Copyright IBM Corporation 2000, 2005. All Rights Reserved.