Eclemma in eclipse showing different coverage than jacoco report from maven command line.

41 views
Skip to first unread message

prathy...@gmail.com

unread,
Aug 31, 2018, 4:30:42 PM8/31/18
to JaCoCo and EclEmma Users
Hello ,

in My eclipse i am using eclemma 3.1.0 version

in pom.xml i am using jacoco-maven-plugin 0.8.1 version.

When i run my test class in eclipse as Coverage As --> Test NG Test, Line coverage ,Branch coverage, total lines etc are showing different values compared to

JACOCO site report when run using maven install command in command prompt.


is there something i am missing? Please let me know if you need any thing.

Please help.

Marc Hoffmann

unread,
Sep 3, 2018, 11:54:15 AM9/3/18
to jac...@googlegroups.com
Hi,

JaCoCo works on debug information in Java class files. Eclipse has its own compiler which creates more detailed debug information in certain situations (e.g. multi-line expressions). But this should cause only a minor difference (and should not have an impact on line coverage).

Also note that we added a few filters to JaCoCo (for unwanted compiler artifacts). Depending on your Eclipse version you might use a older JaCoCo version in Eclipse.

For a detailed discussion please provide

1) An example snippet with its coverage values in both reports (Screenshots)
2) The version of the Maven plug-in.
3) The version of the EclEmma plug-in.

Regards,
marc



--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/967d079d-64a5-4180-a27b-f0a655d82983%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages