html report with package tree

95 views
Skip to first unread message

fate...@gmail.com

unread,
Oct 22, 2018, 10:06:07 PM10/22/18
to JaCoCo and EclEmma Users
I have a project with big amount of packages. As I understood, jacoco generates html reports grouped by package name and it doesn't take package hierarchy into account(report structure is always flat).
Am I correct or I misconfigured it? If I'm correct, is it difficult to implement html report so that it generates a page for a general package, then a user is able to navigate subpackages and see reports for every class and subpackage

Marc Hoffmann

unread,
Oct 23, 2018, 4:43:01 AM10/23/18
to jac...@googlegroups.com
Hi,

you're correct. The JaCoCo report lists every package separately.

Aggregating packages can probably be implemented, but get's tricky for
example when a package contains classes as well as "sub-packages".

We at the JaCoCo project have currently no plans for this but are open
for good proposals how the report might look like.

Cheers,
-marc

v.kiya...@gmail.com

unread,
Nov 30, 2018, 3:30:14 PM11/30/18
to JaCoCo and EclEmma Users
That's very sad. I made some effort to write a gradle task that generates html tree with respect of sub-packages(based on Jacoco xml and html reports). Probably it will help someone else, or maybe it could inspire someone to introduce that in Jacoco itself
https://github.com/Buckstabue/JacocoHtmlTree
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages