Jacoco to show percentages of line coverage in line coverage columns.

906 views
Skip to first unread message

h.bey...@gmail.com

unread,
Sep 25, 2015, 9:58:48 AM9/25/15
to JaCoCo and EclEmma Users
Hello All

I am using Jacoco to measure the code coverage.
The first 2 columns of code coverage report (html) are Instructions and Branch coverage columns. This 2 columns show something like progressbar indicating which part of code is covered, and the coverage percentage is written near the bar. I would like to have similar view in the line coverage column.
Can anyone advice how to do that?

Marc R. Hoffmann

unread,
Sep 28, 2015, 11:31:48 AM9/28/15
to jac...@googlegroups.com
Hi,

this is currently not configurable, the layout is harcoded here:

https://github.com/jacoco/jacoco/blob/master/org.jacoco.report/src/org/jacoco/report/html/HTMLFormatter.java#L132

Regards,
-marc

h.bey...@gmail.com

unread,
Sep 29, 2015, 3:40:42 AM9/29/15
to JaCoCo and EclEmma Users
Thanks for your reply Marc.
I think it will be great to have such a feature.
Don't you know there can one add feature request or suggestion for Jacoco?

Regards
Harut

On Monday, 28 September 2015 19:31:48 UTC+4, Marc R. Hoffmann wrote:
> Hi,
>
> this is currently not configurable, the layout is harcoded here:
>
> https://github.com/jacoco/jacoco/blob/master/org.jacoco.report/src/org/jacoco/report/html/HTMLFormatter.java#L132
>
> Regards,
> -marc
>

Marc Hoffmann

unread,
Sep 29, 2015, 7:16:48 AM9/29/15
to jac...@googlegroups.com
Hi Harut,

here you can open a feature request:

https://github.com/jacoco/jacoco/issues

Please describe how exactly you want the report look like and what is
the use case behind.

Regards,
-marc

h.bey...@gmail.com

unread,
Sep 29, 2015, 8:38:36 AM9/29/15
to JaCoCo and EclEmma Users
Thanks Marc)))

On Tuesday, September 29, 2015 at 3:16:48 PM UTC+4, Marc R. Hoffmann wrote:
> Hi Harut,
>
> here you can open a feature request:
>
> https://github.com/jacoco/jacoco/issues
>
> Please describe how exactly you want the report look like and what is
> the use case behind.
>
> Regards,
> -marc
>
>
>

> On 2015-09-29 09:40:

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