Compoud code coverage results

33 views
Skip to first unread message

Andrew Hewitt

unread,
Nov 7, 2022, 11:00:49 AM11/7/22
to JaCoCo and EclEmma Users
Hi there, Just started using this tool and really finding it useful. I wanted to ask whether the tool, could be made capable of compounding coverage results. I have a set of java packages and multiple programs in those packages, but nothing uses all the packages at once and some programs have modes of operation, which only use half of the functionality.

Regards
Andy

Marc Hoffmann

unread,
Nov 7, 2022, 3:47:17 PM11/7/22
to JaCoCo and EclEmma Users
Hi Andy,

this absolutely possible. Coverage analysis with JaCoCo is a two step process:

1) Execute some Java program and collect execution data (*.exec files)
2) Generate a coverage report from execution data (one or multiple *.exec files)

This means you can run any number of Java processes before you create a test report. In addition there is a “merge” function to consolidate multiple *.exec files in a single one.

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.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/1fa6de01-cbcd-45b2-a38b-a410f708ebedn%40googlegroups.com.

Andrew Hewitt

unread,
Nov 8, 2022, 5:50:44 AM11/8/22
to JaCoCo and EclEmma Users
Hi Marc, Perfect, thx very much. Andy
Reply all
Reply to author
Forward
0 new messages