:::: MENU ::::

EclEmma


EclEmma is an Eclipse plugin that informs us about the quantity of code that is covered by our test: the code coverage.

Installation

In modern Eclipse versions (from Mars) it is not neccesary to install it because it is included by default.

Project setup

It is needed to add the JUnit library to the build path, and recommended to have some tests.

Execution

To execute the analysis of the code coverage we right-click on the project and then on “Coverage As/JUnit Test”.

Review of results

Once the pocess is finished, the results will be available on the Coverage view. In the code we will se green, yellow or red shadows. Green means that our code is totally covered by tests, yellow that it is partially (not at 100%) and red that it is not covered.


So, what do you think ?