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

Junit test - Eclemma Coverage in Jackson toString

I want to have 100% coverage on the method toString overriden with Jackson JSON. @Override public String toString() { ObjectMapper mapper = new ObjectMapper(); try { return mapper.writeValueAsString(this); } catch…
Unai Fifo
  • 13
  • 4
1
vote
1 answer

Coverage exclusion in Eclipse [EclEmma] is not working?

According to this post on StackOverflow and EclEmma's documentation, exclusion of classes from the coverage should be very possible. However, while the "includes" field works just as described, the "excludes" field does not. Take the following…
Code Doggo
  • 2,146
  • 6
  • 33
  • 58
1
vote
1 answer

JMockit with EclEmma code coverage issue

Before anyone downvotes me for a duplicate question.... I have read all the other StackOverflow answers related to this topic and nothing has answered my question. So I am using JMockit 1.19, below is my pom.xml dependencies for Jmockit and…
Mason
  • 1,662
  • 1
  • 9
  • 10
1
vote
1 answer

JUnit testing (positive and negative testing)

This is the code I have written for JUnit Testing for positive and negative testing. @Test public void getMaintenenceIntervalsByMetadataOKTest() throws Exception { MultiValueMap params = new LinkedMultiValueMap
Ravi P.
  • 11
  • 2
1
vote
1 answer

Code Coverage on Java Remote VM

How can I get (if it is even possible) the code coverage report running on a remote JAVA VM in Eclipse So I have a Unit test Suite running over the clients (for simplicity VM1) of the service layer (VM2). (The project was already setup this way and…
otc
  • 694
  • 1
  • 9
  • 40
1
vote
1 answer

Code coverage for border cases that are not assigned to separate lines

I'm using Eclemma in Eclipse to show me the test coverage for my classes. But even if the line and branch coverage are both 100%, there can be still cases that are not covered by unit tests. Example: public double myCos(double angle) { return…
1
vote
3 answers

Eclemma on Eclipse Neon (I can't find icon on toolbar)

I installed Eclemma on Eclipse Neon and the guide says I should be able to find an icon on the toolbar like above. However, I cannot find it and I searched online about this problem and saw some people having trouble with it. But I haven't found a…
1
vote
1 answer

How can I configure EclEmma Eclipse plugin to read Jacoco's agent tcpserver dump

I´m using EclEmma plugin to make coverage tests. And I´d like to include information of EJBs deployed in an AppServer (specifically weblogic 10.3.6) to the final coverage report. I found Jacoco project has an agent that writes that information to a…
jambriz
  • 1,273
  • 1
  • 10
  • 25
1
vote
2 answers

Eclemma fails to install in Eclipse Mars 4.5.2

Error shown while installing it from Eclipse MarketPlace. Cannot complete the install because one or more required items could not be found. Software being installed: EclEmma Java Code Coverage 2.3.3.201602231923…
1
vote
0 answers

Spring boot junit and Eclemma setup?

I have a project that creates a bean library and is built upon spring boot. In the latest spring tools suite (eclipse), I have a set of junit test cases that stands up a spring boot server and tests those beans. All tests are passing. I heard about…
Chip
  • 1,439
  • 3
  • 15
  • 29
1
vote
4 answers

Junit for a Java method which is driven by a boolean flag

The Java method looks like the below public String generateResponseXML(List parsingErrors) throws XMLStreamException { Map additionalNamespaces = new HashMap(); if…
user2967948
  • 529
  • 2
  • 8
  • 23
1
vote
1 answer

Cannot subclass final class with PowerMockRule

I'm using JUNIT with Powermockito and EclEmma to test my Code. Now there is a problem. I have to test this Class: public class Main { private static final Logger slf4jLogger = LoggerFactory.getLogger(Main.class); private static final Marker…
schnawel007
  • 3,982
  • 3
  • 19
  • 27
1
vote
2 answers

1 of 2 branches missed in Eclemma

I have an application (Spring 4 MVC+Hibernate+jpa4+MySQL+Maven integration example using annotations) , integrating Spring with Hibernate using annotation based configuration. and this unit test @Test public void testFindAll() throws Exception…
1
vote
1 answer

EclEmma 2.3.2 support for Eclipse Mars 4.5

Has anyone had success getting EclEmma 2.3.2 installed in Eclipse Mars 4.5? I used the Eclipse Marketplace to install EclEmma, however, upon Eclipse restarting the EclEmma Coverage was not available via Run launch mode, toolbar, nor the Run menu as…
bwoodson
  • 70
  • 8
1
vote
1 answer

Eclipse eclemma coverage "1 of 6 branches missed"

I have a portion of code with three booleans, connected via "&&" like so: bool1 && bool2 && bool3 During testing I debugged to this and found out that every boolean has a state of either true or false during all of the tests, so I would consider…
ferrari2k
  • 461
  • 1
  • 5
  • 16
1 2 3
8 9