View code coverage results in an editor

Open the source code and view its code coverage results in the editor.

Open results in an editor

Procedure

Open the source code and view its code coverage results in the editor. In a Workbench or File code coverage report either double-click the code unit, such as a source file or method, or right-click the code unit and click the Open action. Note, that depending on the type of report or source, the action may be labeled Open in Editor, Open, or Open in Java Editor.

Open in editor

The source will open in the editor with decorations showing the code coverage for each line. By default, a green bar next to the line indicates that the line was covered; a red bar that it was not covered. Hold your mouse over the indicator to see the coverage specifics, as shown below. Note: this capability is not supported within HTML reports.

editor highlight


Feedback