URGENT: jacoco and intellij IDEA15 code coverage results are different for same Junit tests.

2,784 views
Skip to first unread message

anwa...@gmail.com

unread,
Sep 6, 2016, 8:04:47 AM9/6/16
to JaCoCo and EclEmma Users
Hi folks,

we are getting a wired issues could you please show some pointers

we are getting jacoco and injellij IDEA 15 Junit code coverage reports differently any pointers would be greatly appreaciated

Marc Hoffmann

unread,
Sep 6, 2016, 10:35:07 AM9/6/16
to jac...@googlegroups.com
What exactly means "differently"? What exactly are you comparing?

Note that only JaCoCo has 6 different coverage metrics:
http://www.eclemma.org/jacoco/trunk/doc/counters.html

To identify differences it is typically helpful to drill down to a
specific class/method and compare result.

Regards,
-marc

Anwar Haque

unread,
Dec 13, 2016, 3:09:49 PM12/13/16
to jac...@googlegroups.com
Hi Marc,

Reports generated from Jenkins jacoco reports are different than generated with local intelliJ idea

Are there any specific reason for this? How can we get this sorted? Any live examples of partial coverage on IntelliJ w.r.t Jenkins jacoco am using jacoco plugin 1.0.19 on Jenkins where as 0.7.5 on local IntelliJ

Please help will be really appreciated
> --
> You received this message because you are subscribed to a topic in the Google Groups "JaCoCo and EclEmma Users" group.
> To unsubscribe from this topic, visit https://groups.google.com/d/topic/jacoco/9cVFRdRAqS8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to jacoco+un...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/9c9f9445a647d109afde01d4c4ea2bb8%40mountainminds.com.
> For more options, visit https://groups.google.com/d/optout.

Evgeny Mandrikov

unread,
Dec 13, 2016, 7:20:21 PM12/13/16
to JaCoCo and EclEmma Users, anwa...@gmail.com
Hi Anwar,

I believe that Jenkins plugin is dealing with data produced by JaCoCo that is declared in yours build scripts.

IntelliJ bundles particular version of JaCoCo, which is BTW 0.7.2 and not 0.7.5 as you claim - proof: https://github.com/JetBrains/intellij-community/tree/master/plugins/coverage/lib

What to do to use same version in both cases? Obviously there is no options other than: either downgrade first, either upgrade second. I wouldn't recommend first one, because later versions are better, i.e. data in Jenkins should be better / more precise, but as stated earlier - watch your build scripts. For the second one - ask JetBrains developers that maintain this integration. Unfortunately there is nothing with which we can help you here - all this is not owned by us.

My personal opinion: what matters for code quality - is a focus on addition of missing tests for changed/added parts of code instead of focus on absolute value and match of values between tools. As long as usage of both of tools allows you to achieve this, it is acceptable to use different tools (even non-JaCoCo mode in IntelliJ) and have slight mismatch.

P.S. Please respect the fact that help here is provided to you for free by other people in their spare time on a best effort basis, i.e. be ready that when you start thread with word "urgent" - it will not get a quick answer purposely or even will be ignored. Especially that you are allowing yourself to not respond within months. Thank you for your understanding.

Regards,
Evgeny

Anwar Haque

unread,
Dec 14, 2016, 3:27:49 PM12/14/16
to Evgeny Mandrikov, JaCoCo and EclEmma Users
Thanks slot Envgeny will check the options provided abs get back soon 


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