EclEmma – Java Code Coverage

Eclipse, Tools

EclEmma is a free Java code coverage tool for Eclipse and is based on EMMA code coverage tool.

Features

  • Fast develop/test cycle: Launches from within the workbench like JUnit test runs can directly be analyzed for code coverage.
  • Rich coverage analysis: Coverage results are immediately summarized and highlighted in the Java source code editors.
  • Non-invasive: EclEmma does not require modifying your projects or performing any other setup.

Once the plugin is installed, it adds a new launch mode called as Coverage Mode

After the application terminates, EclEmma shows code coverage data in the “Coverage Overview” view

Other than this, EclEmma highlights the code in the source editor showing the results of the coverage session ! Cool !

You can also import and export the coverage data, not sure how useful this feature is !

Currently EclEmma works with the following launch configurations:

  • Local Java application
  • Eclipse/RCP application
  • JUnit test
  • JUnit plug-in test

If you are looking out for free profiling plugins for eclipse, I would recommend TPTP. It has a good set of Monitoring/Tracing/Profiling tools

Download EclEmma

3 comments… add one

  • Dushan Hanuska Dec 24, 2006

    I loved to use Emma for code coverage when I used Eclipse. In fact so much that I blogged about it in “Free Code Coverage Tools” (http://hanuska.blogspot.com/2006/04/free-code-coverage-tools.html).
    However, I tend to use Clover these days as my company (http://www.atlassian.com) has a lincese for it and it integrates well with IntelliJ IDEA.

  • venukb Dec 24, 2006

    Hi Dushan, Yeah Emma is a decent tool which suffices most of the needs I guess.

    By the way I think there is a eclipse version of Clover as well (again licensed I guess). I had used the trial version of clover and it had a pretty good integration with eclipse.

  • Michael Mar 6, 2007

    There is also a tool with somewhat similar functionality for NetBeans, and it is also based on EMMA – http://codecoverage.netbeans.org

Leave a Comment