User Guide

EclEmma records which parts of your Java code are executed during a particular program launch. Therefore coverage analysis always involves two steps:

  1. Run the program
  2. Analyze coverage data

For reproducible results the launched programs are typically automated tests like JUnit tests.

Running a coverage analysis is as simple as pressing a single button like the existing Run and Debug buttons. The coverage results are automatically summarized in the Coverage view and highlighted in the Java editors.

Warning: Although EclEmma is internally based on EMMA it does not require any EMMA specific parameters and classpath settings in your projects. The fact that EMMA is used is completely transparent to the user and all required settings are dynamically created by the Coverage launcher. Adding emma.jar to your projects' classpath or setting properties for EMMA may result in errors during the coverage launch.