How can I prevent anonymous classes in a JaCoCo coverage report?

578 views
Skip to first unread message

Volker Berlin

unread,
Jul 10, 2014, 10:33:35 AM7/10/14
to jac...@googlegroups.com

In the code coverage report that I receive from JaCoCo there are a large count of anonymous classes. Is it possible to summarize the result from anonymous classes to its parent class?

I use the current version 0.7.1.

I want one line per source file in the code coverage report.

Marc R. Hoffmann

unread,
Jul 10, 2014, 1:18:05 PM7/10/14
to jac...@googlegroups.com
Hi,

what report are you refering to? JaCoCo HTML report?

Regards,
-marc
--
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.
For more options, visit https://groups.google.com/d/optout.

Marc R. Hoffmann

unread,
Jul 11, 2014, 2:15:41 AM7/11/14
to jac...@googlegroups.com
Hi,

in case you're talking about the JaCoCo HTML report: On each package overview in the top right corner there is a link "Source Files" which will provide a list of source files only (all inner classes aggregated). If you can't see the source file link or can't see any line numbers please see FAQ: http://www.eclemma.org/jacoco/trunk/doc/faq.html


Regards,
-marc

On 10.07.14 16:33, Volker Berlin wrote:
--

Volker Berlin

unread,
Jul 11, 2014, 7:14:14 AM7/11/14
to jac...@googlegroups.com
Thanks for the answer. This is the half answer. I need it also for CSV reports? Are there any settings? It seems that it is not the simple sum.

Volker

Marc R. Hoffmann

unread,
Jul 12, 2014, 11:37:43 AM7/12/14
to jac...@googlegroups.com
The CSV report is a very simple structure based on classes only. You might take a look at the XML report: It has source file aggregates.

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