Reports as with Tree Like Structure

24 views
Skip to first unread message

1423_SAMRAT CHAKRABORTY

unread,
Apr 7, 2025, 7:22:40 AMApr 7
to JaCoCo and EclEmma Users
Hey Currently I am using Jacoco Commands to generate dumps and reports, the reports are flat but I want them to follow a tree like structure is there a way I can achieve this using the same report generation commands?

Marc Hoffmann

unread,
Apr 7, 2025, 9:39:43 AMApr 7
to jac...@googlegroups.com
Hi,

what exactly do you mean by “flat” and “tree”? The hierarchy used in the reports is

groups -> packages -> classes -> methods

The html report renders instances of each type on a separate page, there is no option for a “tree view”.

Regards,
-marc



On 7. Apr 2025, at 13:22, 1423_SAMRAT CHAKRABORTY <2105...@kiit.ac.in> wrote:

Hey Currently I am using Jacoco Commands to generate dumps and reports, the reports are flat but I want them to follow a tree like structure is there a way I can achieve this using the same report generation commands?

Go Green: Kindly don't print this unless so required.

Established U/S 3 of UGC Act and Accredited by NBA of AICTE and NAAC of UGC
Follow us @ |Twitter|Facebook|Instagram|

The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and delete all copies of this message and any attachments.

 VIRUS WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The institute accepts no liability for any damage caused by any virus transmitted by this email.



--
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 visit https://groups.google.com/d/msgid/jacoco/06bb9b4f-c82e-4265-9763-6a1fc380f48fn%40googlegroups.com.

Message has been deleted
Message has been deleted
Message has been deleted

1423_SAMRAT CHAKRABORTY

unread,
Apr 8, 2025, 1:48:19 AMApr 8
to JaCoCo and EclEmma Users
Hey I recently came across this discussion and I have a similar Query is there a way currently for Jacoco to support this Tree like reporting?

https://groups.google.com/g/jacoco/c/aCiSPkfyyEc/m/JELngsCSCQAJ

1423_SAMRAT CHAKRABORTY

unread,
Apr 8, 2025, 1:48:50 AMApr 8
to JaCoCo and EclEmma Users
Hey I came across this other discussion where someone had a similar problem to mine and was talking about aggregating packages. Currently it lists all the packages in the report but can it perform aggregation on similar packages and provide the report.
For example:

Lets say I have 3 packages: 
- A.x
- A.y
- A.z

So can it club these 3 under A and when I click on A it'll show me these three pakcages in the report?
I wanted to know is this supported?

This is the discussion :

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





On Monday, April 7, 2025 at 7:09:43 PM UTC+5:30 Marc R. Hoffmann wrote:

1423_SAMRAT CHAKRABORTY

unread,
Apr 8, 2025, 1:49:00 AMApr 8
to JaCoCo and EclEmma Users
Hey I recently came across this other discussion. I have a similar issue and wanted to know if this feature is supported by Jacoco Currently.

On Monday, April 7, 2025 at 7:09:43 PM UTC+5:30 Marc R. Hoffmann wrote:

Marc Hoffmann

unread,
Apr 8, 2025, 1:54:21 AMApr 8
to jac...@googlegroups.com
The answer from that thread still holds true. Packages are not aggregated. 

You can user groups if you like to see combined figures for a set of packages. 

Regards,
-marc

Reply all
Reply to author
Forward
0 new messages