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
1 answer

How to increase test coverage using junit and Eclemma?

I have a simple class: public class NPP { // inputs public int m__water_pressure = 0; public boolean m__blockage_button = false; public boolean m__reset_button = false; public int old_m__pressure_mode = 0; public boolean…
Joao Victor
  • 1,111
  • 4
  • 19
  • 39
0
votes
1 answer

Writing test case for switch statement inside private method

I have a switch case statement inside a private method. I don't think we need to do unit testing for the private method. But my code coverage tool(EclEmma) is showing "1 of 4 branches missed." with yellow diamond on switch statement. So my question…
αƞjiβ
  • 3,056
  • 14
  • 58
  • 95
0
votes
0 answers

Junit test coverage ReadWriteLock

I am trying to reach high % coverage using EclEmma on a piece of code and I am having problem covering the following: public class foo() { ReadWriteLock compositeLock; @VisibleForTesting @Guardedby("compositeLock") public class…
PhoonOne
  • 2,678
  • 12
  • 48
  • 76
0
votes
1 answer

jUnit and DateFormat (EclEmma code coverage)

I'm new to jUnit and I'm trying to deep more my knowledge about it. I searched on the web but didn't found anything to solve a couple of doubts. This is the code: public class StringConverter { public static String formatDate(Date date) { …
araknoid
  • 3,065
  • 5
  • 33
  • 35
0
votes
1 answer

Code Coverage Source Annotation with EclEmma

I installed EclEmma for its source annotation abilities relating to code coverage, how it highlights code with various colors based on whether or not that code is hit during execution. I intend to use this information for debugging purposes. The…
Techrocket9
  • 2,026
  • 3
  • 22
  • 33
0
votes
1 answer

Merging jUnit coverage reports with EclEMMA plugin

I am measuring the code coverage in my project using the EclEmma plugin for Eclipse. This involves running the coverage for the whole project. But due to some dependency issues tests in some packages are failing altogether. When the coverage for…
Unni Kris
  • 3,081
  • 4
  • 35
  • 57
0
votes
2 answers

Why code coverage is different when measured by eCobertura and EclEmma?

When using eCobertura and EclEmma resp. I found the code coverage come out as different in each case for the same project. Interested to know why? Emma stat eCobertura stat
R11G
  • 1,941
  • 8
  • 26
  • 37
-1
votes
1 answer

eclemma showing red for else conditions in java which leads in getting low percentage of code coverage

In the below sample code eclemma highlighting public class Test { and System.out.println("false"); as red if (a<15) as yellow I got code coverage percentage is 62%. Eclemma Report: Missed Instructions Cov. 62% , Missed Branches Cov. 50% , Missed 2…
kalyan
  • 3
  • 3
-1
votes
2 answers

In unit testing how to cover all branches

I am writing junit test cases and using ECLEMMA for checking unit test coverage. I have following code in ServerClass.class This class is setting the status of a server. public class ServerClass{ private boolean isStarted; …
technicalworm
  • 171
  • 1
  • 2
  • 10
-1
votes
1 answer

Can i use EclEmma coverage report in sonar?

I have to generate a code coverage for unit tests on sonar.Eclipse provide eclEmma for providing code coverage by unit tests.I am able to generate coverage report using eclEmmma 2.0,How can i use this report to configure with sonar analysis...or any…
-4
votes
2 answers

java.io.FileNotFoundException: c:\slask\isu.dsv

When I am using code coverage in my application using EclEmma. It shows a java.io.FileNotFoundException: C:\slask\isu.dsv error, due to which Junit test is not done. Can you please help me out?
1 2 3
8
9