1

I have a list of JUnit files and I want to measure code coverage using EClEmma.

So I installed the plugin to Eclipse IDE.

The Coverage button is present in my IDE.

To measure coverage I just selected the JUnit file and pressed the Coverage button.

It launches the tests successfully.

But it shows an error called 'initializationError' and some poor coverage percentage (.2), possibly missed many of the coverage and it shows many of the code as not covered.

I don't know how to rectify this problem.

How to run coverage using EclEmma ?

Also I added the files for instrumentation and tried but it doesn't work.

2
  • As shown in a post stackoverflow.com/questions/7936006/… I just added the JVM parameter and now EclEmma runs fine. The main reason for this error is my jdk version is 1.7 (sun/oracle version). Thanks for the post.
    – Athiruban
    Commented Dec 20, 2011 at 5:36
  • And now I can able to measure the coverage information using EclEmma.
    – Athiruban
    Commented Dec 20, 2011 at 10:05

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.