18 March 2016

Introduction

EclEmma is a free Java code coverage tool for Eclipse. It displays the coverage report in Eclipse directly. EclEmma is based on the JaCoCo code coverage library. EclEmma is one of the suitable tools for Test Driven Development (TDD).

Snapshot of the code coverage in Eclipse is shown below

Install EclEmma plugin into your eclipse

Download the latest eclemma zip file from this location and extract the content into dropins folder inside eclipse. Restart the eclipse. On successful installation, the following image will be visible.

Test the Code Coverage

Open any junit test suite, right click on the file-> coverage as -> junit test.
Open Coverage view from Window->Showview->Other->Coverage to see the report.
You can export the report from Coverage View.



blog comments powered by Disqus
J2EE,SOAP,RESTful,SVN,PMD,SONAR,JaCoCo,HTTP,API,MAVEN,AngularJS,GitHub,LDAP,AOP,ORM,JMS,MVC,AWS,SQL,PHP,H2DB,JDBC