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
7
votes
2 answers

Code coverage in Android Studio

I have added testCoverageEnabled=true in my build.gradle file in order to start getting some code coverage reports. Running my tests I can see that a code-coverage folder is added in my build outputs folders. However, when a reach its contents I see…
6
votes
1 answer

How to Ignore coverage for java core assertions, Eclipse Eclemma

I have a question regarding Eclemma plugin configuration: In production code I have a lot of java core assertions, like: assert arr.size() == 2 : "message"; When I am running Eclemma on my unit tests, it shows low coverage because of yellow marks…
haykart
  • 957
  • 5
  • 14
  • 34
6
votes
3 answers

Where do I find the eclEmma dependencies?

I'm trying to install eclEmma in my eclipse Juno installation. When I install via 'Install new Software' eclipse calculates the dependencies, asks me to accept the licence an then produces this error: An error occurred while collecting items to be…
Jens Schauder
  • 77,657
  • 34
  • 181
  • 348
5
votes
1 answer

eclipse eclemma - No repository found containing: osgi.bundle,org.eclipse.eclemma

i had eclemma installed on oxygen Version: Oxygen.3a Release (4.7.3a) Build id: 20180405-1200 and working, but it seems gone from the menu. trying to update, gets the message below. removing and reinstalling does not make any coverage items appear…
Ray Tayek
  • 9,841
  • 8
  • 50
  • 90
5
votes
3 answers

Jacoco is not showing coverage for PowerMockito classes

We are using Jacoco and eclemma for test case coverage. For the classes that are not using PowerMockRunner we are getting coverage properly in both.For the classes that uses PowerMockRunner we are facing issue with coverage like it shows 0 %…
Pradeep
  • 1,947
  • 3
  • 22
  • 45
5
votes
3 answers

java.lang.ClassCastException: Z cannot be cast to java.lang.String

I'm getting an error: java.lang.ClassCastException: Z cannot be cast to java.lang.String while trying to run coverage (EclEmma) on a Junit test. If I run the test regularly (without coverage) then it passes. This is the code (all the fields in the…
co.zohar
  • 183
  • 3
  • 15
5
votes
2 answers

Test coverage Eclemma vs Sonar

I am running eclemma as well as for measuring the test coverage in my project. I noticed a weird thing,that I am able to get correct results with the help of Eclemma but the results from sonar are different and it is not covering some of the code…
Rajeev Akotkar
  • 1,377
  • 4
  • 26
  • 46
5
votes
1 answer

Getting an error when using EclEmma (eclipse plugin) with JMockit (only with Delegate())

I recently started using JMockit and am very new at TDD and mocking. I like to use code coverage to make sure that I have tested all the lines for a given a class/method. I came across the following error when trying JMockit (Delegate()…
Pranav Shah
  • 3,233
  • 3
  • 30
  • 47
5
votes
0 answers

Android Code Coverage fails due to CNF Exception for org.junit.Test

I get the following error when I run the following code coverage test using ant: ant emma debug install test I am running this from an Ubuntu 12.10 terminal. The JUnit4 library was properly added into my eclipse test project. The test project is a…
Jes Chergui
  • 1,318
  • 1
  • 22
  • 33
5
votes
3 answers

How do I ignore scanning certain classes using EclEmma and Eclipse?

I am using EclEmma (inside of Eclipse) to scan my JUnit code coverage. This works correctly - however, I do not want EclEmma to scan my src/view folder since it contains Swing code that I consider not worthy of testing. Is there any way to ignore…
sdasdadas
  • 23,917
  • 20
  • 63
  • 148
5
votes
3 answers

Can fully covered code have an EclEmma coverage rating of less than 100%?

I just wrote some simple sample code to make sure that I had EclEmma installed correctly. I'm not getting 100% coverage, and I don't understand why. The highlighting implies that it has to do with the class name. Here's my code, with corresponding…
Pops
  • 30,199
  • 37
  • 136
  • 151
4
votes
1 answer

How to show coverage color on the code in Eclipse?

I run my application with coverage mode, but, a file don't have color on the code. Is there a macro (or an other solution) to show color of coverage in Eclipse ?
KaluNight
  • 55
  • 1
  • 9
4
votes
2 answers

EclEmma Code Coverage Ignore Junit Tests

The only way I have found to not check code coverage on my JUnit tests is to right click on the package, choose Coverage as..., and then choose configuration. Then I can unclick my test package. I have tried every possible combination to exclude…
JesseBoyd
  • 1,022
  • 1
  • 13
  • 18
4
votes
1 answer

Error occurred while analyzing the Eclemma code coverage

I am using the Eclemma 2.3 and as well as lombok-1.16.8.jar. When I run the code coverage, Eclemma plugin gives the following error: Error while loading coverage session (code 5001).** Error while analyzing package fragment root lombok-1.16.8.jar…
Sudhakar
  • 3,104
  • 2
  • 27
  • 36
3
votes
0 answers

Get code coverage report(junit and instumentation testcases) for eclipse android project

I have android project which has some Junit test-cases and some instrumentation test-cases. I am able to generate the code coverage for the Junit test-cases with help of Colver or EclEmma tool. Now i need to create the code coverage report for…
1
2
3
8 9