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

Can I directly replace @RunWith(PowerMockRunner.class) with @RunWith(MockitoJunitRunner.class)

@RunWith(PowerMockRunner.class) is not working with Eclemma and it is showing 0% coverage for the classes annotated with @RunWith(PowerMockRunner.class) If I replace @RunWith(PowerMockRunner.class) with @RunWith(MockitoJunitRunner.class) the code…
sagar
  • 1
  • 4
0
votes
0 answers

Method not covered during JUnit code coverage (Eclemma code coverage testing); It says "All 2 branches missed"

I was wondering if anyone could help me, my method is not covered during code coverage testing even though I mocked it in the test class. This is my method in the main class DeviceService.java which I am trying to mock in test class: public…
MyDev2020
  • 9
  • 2
0
votes
1 answer

understanding Eclemma results

I am trying to understand the concept of code coverage and a complete novice to this topic. I am using Eclemma to measure the code coverage of an open-source code. Can somebody help me to know what are important insights I should consider into the…
0
votes
1 answer

can't use Eclemma coverage tool with eclipse

I'm trying to use Eclemma for my project in eclipse but I get this error every time I try "coverage as" as shown here This is the error: java.lang.instrument.IllegalClassFormatException: Error while instrumenting…
Ghada
  • 1
  • 1
0
votes
1 answer

Can EclEmma for Eclipse show code coverage by test?

So i'm using EclEmma in Eclipse to generate a XML coverage report. Looks something like this: -
0
votes
0 answers

Start in coverage mode for Visual Studio

I am looking for a coverage tool for VS2017 c# code. Presently I am using AxoCover which is working fine. Here unit tests are to be written for the every lines of codes to be covered. Now I want to test another C# project, I was thinking to get the…
FaisalM
  • 724
  • 5
  • 18
0
votes
0 answers

Error while loading coverage session (code 5001) in eclemma plugin

enter image description hereError while loading coverage session (code 5001). Error while analyzing package fragment root resources at F/junit/target/test-classes (code 5007). File not found: file path File not found:file path
0
votes
1 answer

How to resolve 'Launching ServiceTest has encountered a problem' in EclEmma plugin in Eclipse IDE

While trying to use EclEMMA to generate code coverage.It started the program but threw issue - (Please have a look at the image attached - Image 1). enter image description here To replicate the issue I tried to run it on a small piece of code. I…
Shubham Arya
  • 585
  • 5
  • 18
0
votes
0 answers

Eclipse PowerMock coverage with ECLEmma

I am using Mockito and PowerMock with JUnit. The coverage tool used is ECLEmma. The code that is unit tested with PowerMock, the coverage is shown in red (uncovered). Here are my the POM mock…
user9755712
0
votes
1 answer

Eclemma coverage issue for a method in an ENUM class

I'm using EclEmma plugin for Eclipse, and the coverage report shows 0% coverage for an Enum I've defined, public enum Call { INSTANCE; public int add(int a, int b) { return a+b; } public int sub(int a,int b){ return a-b; } } and my…
0
votes
0 answers

How to exclude code (packages) in jococo, eclemma

I am trying to exclude code in jococo. I have given for the package that I want to exclude and vice versa tags in my code for the package that I want to include. but still ECLEMMA while junit coverage is reading whole code i.e. all packages and…
Ruchita J
  • 23
  • 7
0
votes
0 answers

Trying to refer a project not mentioned in .classpath

I am trying to setup EclEmma Code coverage in my eclipse. When I am trying to run JUNIT4 from "Coverage As" I am getting an error. SOME_PRE_EXISTED_JAR_I_HAD-1.0-SNAPSHOT.jar which is referenced by the classpath does not exist I have verified the…
saptarshi
  • 97
  • 1
  • 14
0
votes
0 answers

EclEmma covarage eclipse plugin failed with build directory

I changed my build path to my-project/build in order Eclipse to take the class files from the Gradle execution, but when I rerun coverage analysis I faced this problem. Error while loading coverage session (code 5001). Error while analyzing…
Xelian
  • 16,680
  • 25
  • 99
  • 152
0
votes
0 answers

Cannot install EclEmma in Eclipse Indigo

I tried to install EclEmma and Eclipse Indigo won't let me. I get the following error: Cannot complete the install because of a conflicting dependency. Software being installed: EclEmma Java Code Coverage 3.0.0.201706140232…
AwesomeGuy
  • 537
  • 1
  • 6
  • 17
0
votes
2 answers

JUnit Testing: How To Test If Statements Without Missing A Branch?

I have run EclEmma for coverage on my JUnit Test Cases and have reached up to 100% on some. However, on the ones that are 82% or 95% covered, there is a message next to my code that says "1 of 2 branches missed" and I can't seem to solve this issue.…
user1975
  • 11
  • 1
  • 1
  • 3
1 2 3
8 9