Line coverage percentage detail.

63 views
Skip to first unread message

yashwanth koundinya

unread,
Oct 31, 2016, 12:39:05 PM10/31/16
to JaCoCo and EclEmma Users
Hi

I am good with changing the HTMLFormatter.java and building my own jar version  of org.jacoco.report to show the line coverage percentage in priority. But I see that the percentages are rounded off. 

Is there a similar way to avoid rounding off the percentage and customising the same?

If yes, please let me know.

Thanks
Yashwanth Koundinya

Marc Hoffmann

unread,
Nov 1, 2016, 12:55:56 PM11/1/16
to jac...@googlegroups.com
Hi Yashwanth,

rounding happens within the class which renders percentage columns:

https://github.com/jacoco/jacoco/blob/master/org.jacoco.report/src/org/jacoco/report/internal/html/table/PercentageColumn.java

You may also change this class for your own version.

Regards,
-marc

On 2016-10-31 17:39, yashwanth koundinya wrote:
> Hi
>
> I am good with changing the _HTMLFORMATTER.JAVA_ and building my own
> jar version of _ORG.JACOCO.REPORT_ to show the line coverage
> percentage in priority. But I see that the percentages are rounded
> off.
>
> Is there a similar way to avoid rounding off the percentage and
> customising the same?
>
> If yes, please let me know.
>
> Thanks
> Yashwanth Koundinya
>
> --
> 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/20c0b9a7-9825-4135-b677-418f25689763%40googlegroups.com
> [1].
> For more options, visit https://groups.google.com/d/optout.
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/jacoco/20c0b9a7-9825-4135-b677-418f25689763%40googlegroups.com?utm_medium=email&utm_source=footer

yashwanth koundinya

unread,
Nov 9, 2016, 6:28:29 AM11/9/16
to JaCoCo and EclEmma Users
Hi Marc,

Thanks a lot. It works. Now the report is custom according to our needs,

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