Structural Code Coverage using EclEmma
Introduction to EclEmma
EclEmma is a free Java code coverage tool for Eclipse, available under the Eclipse Public License. It brings code coverage analysis directly into the Eclipse workbench:
- Fast develop/test cycle: Launches from within the workbench like Junit test runs can directly be analyzed for code coverage.
- Rich coverage analysis: Coverage result are immediately summarized.
- Non-invasive: EclEmma does not require modifying your projects or performing any other setup.
EclEmma is based on the JaCoCo code coverage library. The Eclipse integration has its focus on supporting the individual developer in an highly interactive way. Originally EclEmma was inspired by and technically based on the great EMMA library developed by Vlad Roubtsov.
Download and Configuration Details
- Users machine should have Eclipse IDE installed, if not follow the below link to download eclipse. https://www.eclipse.org/downloads/
- From your Eclipse menu select Help -> Install New Software
- Then enter http://update.eclemma.org/ at the Work with field
- Select the latest EclEmma version and click next.
- Click through the rest of the dialog boxes to install the plugin.
- The installation was successful if you can see the coverage launcher in the toolbar of the Java perspective.
Usage of Tool
Programmers can check whether
- · Each function in the program been called
- · Each statement in the program been executed.
- · Each branch of each control structure such as in if and case statements been executed.
- · Each Boolean sub-expression evaluated both to true and false.
Strengths
- Launches from within the workbench like Junit test runs can directly be analyzed for code coverage.
- Coverage results are immediately summarized and highlighted in the Java source code editor.EclEmma does not require modifying your projects or performing any other setup.
- It provides some import/export features.
Weaknesses
- Only works on source code, cannot be used to identify runtime errors.
- Cannot be used to examine Threading and Synchronization mechanisms.
User Reviews of the tool
This is an Amazing project! The code coverage report is so fine-grained, that you'll get a good glimpse of what parts of code is missing coverage. The report is simply fantastic. Plus the maven integration plugin is so easy to use. Thanks for doing this and more importantly, making it free!!
Review Quoted from: https://sourceforge.net/projects/eclemma/reviews
Outcome of the tool
- By using EclEmma developers can Saved countless hours.
- Change the way of your programming.
Comments
Post a Comment