User: Password:
   Keep me logged in.
Register  |  I forgot my password

Login  |  Register

Efficient Java Tools  - Listing Details

ID:205
Title:EclEmma
Pagerank:5
Short Description:
Listing Thumbnail

Emma is a code coverage tool. EclEmma is an Eclipse plugin that generates Emma coverage. It installs via an update site. It executes via the Run Dialog, so any existing run configuration can be easily “coveraged” (including RCP JUnit tests).

Description:

EclEmma is a free Java code coverage tool for Eclipse, Internally it is based on the great EMMA Java code coverage tool, trying to adopt EMMA's philosophy for the Eclipse workbench:

·        Fast develop/test cycle: Launches from within the workbench like JUnit test runs can directly be analyzed for code coverage.

·        Non-invasive: EclEmma does not require modifying your projects or performing any other setup.

·        Rich coverage analysis: Coverage results are immediately summarized and highlighted in the Java source code editors.

The Eclipse integration has its focus on supporting the individual developer in an highly interactive way.

An additional coverage tab in the Run Dialog allows you to select which packages will be instrumented. Results are shown graphically in an Eclipse view, grouped by packages. The view allows you to drill into classes and into methods, showing the coverage of each level along the way.

Double-clicking in the view brings up the source code, which is color coded to represent which lines were covered. This is very useful during the personal development process, as individuals can selectively run unit tests to check for coverage in the related modules they are working with.

The results are interactive and allows the developer to quickly see which areas require coverage improvement. This is much easier than waiting and going through a Continuous Integration report later (if any). In fact, I have successfully employed this approach to identify areas lacking coverage, and discovering bugs after having test cases for those areas identified.


Feature are:

EclEmma adds a so called launch mode to the Eclipse workbench. It is called Coverage mode and works exactly like the existing Run and Debug modes. The Coverage launch mode can be activated from the Run menu or the workbench's toolbar:

Simply launch your applications or unit tests in the Coverage mode to collect coverage information. Currently the following launch types are supported:

·        Local Java application

·        Eclipse/RCP application

·        JUnit plug-in test

·        JUnit RAP test

·        SWTBot test

·        Equinox OSGi framework

·        JUnit test

·        TestNG test

Analysis

After your application or unit test has terminated code coverage information is automatically available in the Eclipse workbench:

·        Coverage overview: The Coverage view lists coverage summaries for your Java projects, allowing drill-down to method level.

·        Source highlighting: The result of a coverage session is also directly visible in the Java source editors. A customizable color code highlights fully, partly and not covered lines. This works for your own source code as well as for source attached to instrumented external libraries.

Benefits are:

The EclEmma plug-ins ship with online help, see chapter EclEmma Java Code Coverage in the Eclipse help system after you installed EclEmma.

Additional analysis for test coverage:

·        Merge Sessions: If multiple different test runs should be considered for analysis coverage sessions can easily be merged.

·        Multiple coverage sessions: Switching between coverage data from multiple sessions is possible.

·        Different counters: Select whether instructions, lines, basic blocks, methods or loaded types should be summarized.

While EclEmma is primarily designed for test runs and analysis within the Eclipse workbench, it provides some import/export features.

·        Coverage data import: A wizard allows to import *.ec coverage data files from external launches.

·        Coverage report export: Coverage data can be exported as a *.ec file or in XML or HTML format.

Category:Testing: Code Coverage
Link Owner:
Date Added:May 02, 2010 02:49:59 PM
Number Hits:10
URL:    http://www.eclemma.org/
Ratings
You must be logged in to leave a rating.
Average rating: (0 votes)
Reviews

No Reviews Yet.


You must be logged in to leave a Comment.