Questions tagged [eclemma]

EclEmma is a free Java code coverage tool for Eclipse, available under the Eclipse Public License.

EclEmma is a free Java code coverage tool for Eclipse, available under the Eclipse Public License.

See http://www.eclemma.org/

131 questions
1
vote
1 answer

Code Coverage for Android Library Project while using Robolectric

I have an android library project. We are using Robolectric to run the unit tests. Unit Tests are working fine from the IDE as well as Ant build.xml file. I am able to get the code coverage using the eclEmma plugin in Eclipse. But I am facing…
Prateek
  • 139
  • 1
  • 11
1
vote
0 answers

Getting "[java] Error: Could not find or load main class" when using ant emma

i want to take code coverage for my application.This is my build.xml file.
santro
  • 373
  • 1
  • 6
  • 22
1
vote
1 answer

Android Coverage launch with JaCoCo

We have an Android application that we are building with Gradle/Android Studio and are using JaCoCo to generate code coverage reports for our unit tests; this is working great. We are also interested in being able to generate coverage reports for…
Tbadams
  • 424
  • 1
  • 5
  • 20
1
vote
1 answer

Strange behavior of ECLEmma Code Coverage Tool in eclipse

there is a strange problem with the code coverage tool ECLEmma: For the class MyFirstLogger I wrote the testclass MyFirstLoggerTest: Please notice that I wrote in MyFirstLoggerTest a Testmethod where I expect to get a NullPointerException, just…
user3133542
  • 1,695
  • 4
  • 21
  • 42
1
vote
0 answers

Code coverage is always shown as zero percent using Eclemma plugin

I am using EclEmma plugin for getting the code coverage for a package. But it always shows 0% as the coverage. Is there anything which I am missing out as part of configuration Please help.
user3756951
  • 45
  • 1
  • 6
1
vote
1 answer

Eclemma 1.5.3 coverage report in exception scenarios

We are using eclemma-1.5.3 to get our unit test coverage report. For the unit test we have used powermock-easymock-1.5.5. Our problem is when we run the test for some exception scenarios in test class that exception method(we wrote in test class)…
user3496599
  • 1,207
  • 2
  • 12
  • 28
1
vote
1 answer

How can I get code coverage reports when testing REST API with TestNG?

I have a question that's very similar to what's discussed here: Integration Test of REST APIs with Code Coverage I deployed a war file that exposes the REST APIs to a web server and I'm using TestNG to write test cases for the REST APIs. I'm not…
1
vote
1 answer

Code coverage of single test file using eclemma?

i am using eclemma available at http://www.eclemma.org/index.html When i open test file, Right click --> Coverage As --> Junit Test It shows the coverage for complete project instead of single test file under coverage view. Is there a way i can have…
user3198603
  • 5,528
  • 13
  • 65
  • 125
1
vote
1 answer

Eclemma not offering report exportation option

I'm sure that I'm making some kind of rookie mistake, but I'm using EclEmma for the first time right now and can't figure out, despite checking numerous guides, how to export my coverage report. For reference, this is on Windows 8 x64 and using…
Free
  • 663
  • 9
  • 13
1
vote
2 answers

Test Coverage: How to cover assertions?

EDIT: So It looks like JeffStorey link to the bug is correct. With assertions enabled the compiler will generate extra code. There ends up being 1 extra unreachable branch created. One of my methods constructor has these asserts public Board(int…
roverred
  • 1,841
  • 5
  • 29
  • 46
1
vote
1 answer

Eclipse EclEmma Find where code tested

Is there a way in Eclipse with or without the EclEmma plugin to find the actual test where the code in question has been tested? After searching online, I doubt it can be done, just wanted to ask here to make sure.
liquidus219
  • 129
  • 1
  • 8
1
vote
0 answers

Eclipse Kelper EclEmma code covarage exclude

I'm trying to exclude certain packages from eclipse code coverage tool EclEmma. I've found this post How do I ignore scanning certain classes using EclEmma and Eclipse? but it's not very useful. I've tried changing the code coverage preferences with…
1
vote
2 answers

EclEmma Coverage checking using Eclipse

I want to check my test coverage of GWT codes using EclEmma, when i run coverage it always shows zero percentage of coverage in report. Can any one help me out.. Below is the image of coverage report, it show i didn't cover any instructions,…
Dipak
  • 6,532
  • 8
  • 63
  • 87
1
vote
1 answer

Eclipse with ADT - JUnit Test Not Running With EclEmma

I am currently running Eclipse Juno with the Android Development Tools plugin so I can develop Android applications and test them. To get code coverage of the applications (and preferably the APIs of Android themselves), I installed EclEmma into…
NioShobu
  • 775
  • 2
  • 10
  • 21
1
vote
1 answer

NoClassDefFoundError with the EclEmma code coverage tool

I tried to use the EclEmma code coverage tool to check coverage of test cases, but got the following error: java.lang.NoClassDefFoundError: android/test/ActivityInstrumentationTestCase2 How can I fix this?
Justin k
  • 1,104
  • 5
  • 22
  • 33
1 2 3
8 9