JaCoCo HTML Report customization

804 views
Skip to first unread message

koudel...@gmail.com

unread,
Feb 23, 2016, 9:28:54 AM2/23/16
to JaCoCo and EclEmma Users
Hi All,

is there any way how to customize the html report (e.g.: adding line/method/class coverage in percentage) ?

Our management is more interested in percentage coverage for line/method/class than branch/instruction.

Thanks a lot,
David.

Marc Hoffmann

unread,
Feb 23, 2016, 12:48:53 PM2/23/16
to jac...@googlegroups.com
Hi David,

there is no configuration option for this. You might build your own
version of JaCoCo and adjust the HTMLFormatter.createTable() method:

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

I opened a feature request for a configuration option:

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

Regards,
-marc

koudel...@gmail.com

unread,
Feb 24, 2016, 6:49:01 AM2/24/16
to JaCoCo and EclEmma Users
Hi Marc,

Thank you very much!

Best Regards,
David.

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