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
3
votes
0 answers

EclEmma: Error while analyzing package fragment root

I downloaded EclEmma 2.3.3 from Eclipse Marketplace to my Kepler Service Release 2. I ran a JUnit test with the test coverage option, but am getting the following error: Error while loading coverage session (code 5001). Error while analyzing…
Blitz
  • 59
  • 7
3
votes
2 answers

Eclipse EcLemma number of covered instructions more than lines of code

In the coverage result, it shows that I've covered 9 instructions while there are only 5 lines highlighted green. Which are the other 4 instructions?
Akash Agarwal
  • 2,326
  • 1
  • 27
  • 57
3
votes
1 answer

JUnit and Spring - code coverage % is wrong when using multiple Threads in test

We tried to use a couple of code-coverage plugins for our spring project (EclEmma,Clover). Both are providing wrong results regarding the coverage %. The tests are using Spring's taskExecutor (thread pool). All the code that the task executors…
Urbanleg
  • 6,252
  • 16
  • 76
  • 139
3
votes
1 answer

EclEmma not working

I'm trying to use EclEmma with Eclipse, but I can't get it to work. I can't see the button that's supposed to launch my project in Coverage mode, There;s also no such option in Run menu: I've tried to fix it in two ways I've found on the Internet,…
rtoip
  • 172
  • 1
  • 10
3
votes
0 answers

How can I filter out packages from the JaCoCo Maven scope?

I'm working on code coverage for a Java library. It's a SOAP/REST client. The client has several packages dataTypes.generated. for the generated types for connecting to the server side. For working with the client there is a translation layer to…
Raystorm
  • 6,180
  • 4
  • 35
  • 62
3
votes
1 answer

jacoco:check failing due to invalid parameters

I am trying to run a maven build in my eclipse environment and I receive the following error: [ERROR] Failed to execute goal org.jacoco:jacoco-maven-plugin:0.6.1.201212231917:check (check) on project schedule-adapter: The parameters 'check' for…
75inchpianist
  • 4,112
  • 1
  • 21
  • 39
3
votes
1 answer

EclEmma - Class Header Not Getting Coverage

I am working with EclEmma for the first time, and I noticed that the header for my main class is never getting coverage. Everything within the main method is green, but the header itself "public class Main" is always red. In an attempt to find the…
juliusav
  • 51
  • 1
  • 3
3
votes
1 answer

No coverage results using the eclEmma plugin for server code in a gwt application

I'm using the eclEmma plugin to test code coverage for my gwt application. I've written jUnit test classes for client code, such as testing get/set methods etc. as well as jUnit tests for rpc services. I used "syncproxy" to test my equivalent…
2
votes
0 answers

Using JaCoCo API programmatically

I'm trying to use JaCoCo API with CoreTutorial. It provides how to check coverage with instrumented classes. public void execute() throws Exception { final String targetName = TestTarget.class.getName(); // For instrumentation and…
5ubin
  • 21
  • 1
2
votes
2 answers

Getting a "no coverage data has been collected" message using EclEmma and Eclipse

I recently had this very annoying problem come out of nowhere. Running my unit tests with EclEmma coverage enabled causes the following dialog window to pop up from Eclipse: For the search engines, it reads: No coverage data has been collected…
Gray
  • 115,027
  • 24
  • 293
  • 354
2
votes
2 answers

Code Coverage resulting in following issue

I am trying to perform Code Coverage analysis for my JUnit Test Classes but it is throwing following error : I have created two separate folders (main and test). I am not able to create a clean build. Class not found…
2
votes
2 answers

Eclemma: Invalid Input Url Error in Eclipse

After starting Eclipe I see the following error message in the workspace/.metadata/.log !ENTRY org.eclipse.core.runtime 4 0 2017-09-18 09:38:48.275 !MESSAGE Invalid input…
coconut
  • 494
  • 2
  • 5
  • 13
2
votes
2 answers

EclEmma, powermock and Java 7 issue

I am using Powermock but when I run Eclemma coverage, the Powermock test cases are not considered in the final score because of known issues with EclEmma. The work around for this which I search and other answers on stackoverflow suggest to…
2
votes
3 answers

What does red highlight in unit test mean?

I run a unit test, and see how much of the class I'm testing against is covered, and I see its all green (covered). But in my unit test itself, I see red high lights. What does this mean? I don't see any information about the highlights in the tests…
Janac Meena
  • 3,203
  • 35
  • 32
2
votes
1 answer

How does assert groupType != null contain 4 branches

I need to test the following code. public List findGroups(final String groupType) throws HwBaseAppException { assert groupType != null;//4 branches here CriteriaBuilder criteriaBuilder=persistence.getCriteriaBuilder(); …
Aviral Saxena
  • 63
  • 1
  • 4
1 2
3
8 9