EclEmma 3.0.1 Java Code Coverage for Eclipse Drag to your running Eclipse workspace to install EclEmma Java Code Coverage
Eclipse Community Award 2008
JaCoCo
Inspected with sonarqube
Java Developer in Frankfurt
The Java Specialists' Newsletter

Coverage Decorators

Note: This is an optional feature not enabled by default.

The Eclipse workbench has the concept of so called decorators which add graphical and textual information to elements shown in the workbench views. EclEmma provides coverage decorators for the currently active coverage session: A little green/red bar on the elements' icons and a percentage value next to the names.

Coverage Decorators

The percentage shown is calculated based upon the instruction counters. Coverage decorators are only visible if there is an active coverage session and only shown for elements containing executable code, therefore e.g. not for abstract methods.

This optional feature can be enabled in the Eclipse preferences dialog:

  • Open the preferences dialog from WindowPreferences...
  • Navigate to page GeneralAppearanceLabel Decorators
  • Select Java Code Coverage and press OK