Hi Jeremy,

the native JaCoCo report would show "N/A" instead of 0% if there are no branches at all.

Your screen shot is the Jenkins plug-in which is not maintained by us. I recommend filing a bug at the respective project:

    https://wiki.jenkins-ci.org/display/JENKINS/JaCoCo+Plugin

Regards,
-marc

On 08.10.14 22:28, Jeremy Brown wrote:
Well, maybe I'm not so silly. I was thrown off by a checkin. Here is an example of what I believe is 0% branch on a class with no branch logic.

<https://lh6.googleusercontent.com/-nGIY0b2XlzU/VDWeb_118SI/AAAAAAAAA1c/GkC3zk3Dyc4/s1600/Screen%2BShot%2B2014-10-08%2Bat%2B3.19.05%2BPM.png>



On Tuesday, October 7, 2014 5:06:51 PM UTC-5, Jeremy Brown wrote:

    OK, Really this is just me being silly. The hashCode and equals
    methods certainly have branch logic.

    Thanks, Jeremy

    On Tuesday, October 7, 2014 4:17:33 PM UTC-5, Marc R. Hoffmann wrote:

        Can you please provide a specific example demonstrating the
        problem?

        Regards,
        -marc

        On 07.10.14 16:23, Jeremy Brown wrote:
        I'm getting 0% branch coverage on code with no branch logic.
        It's a package that just contains JPA classes and Spring
        Controller Templates which is very well tested using BoneCP
        and H2. If there are no branches to execute shouldn't the
        coverage be 100%? Maybe this seems like a quibble but these
        kinds of issues make our teams very hesitant to display code
        coverage information to the org, it's hard enough to get them
        to accept it already.
-- 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 [email protected].
        For more options, visit https://groups.google.com/d/optout
        <https://groups.google.com/d/optout>.


--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to