Is there a way to merge jacoco and Emma code coverage reports

57 views
Skip to first unread message

Kumar Dp

unread,
Jan 21, 2021, 5:42:54 AM1/21/21
to JaCoCo and EclEmma Users
Hi,

We have dev LRGS where we use EMMA to generate code coverage report and in automation test execution we used JACOCO to generate code coverage report.

Management is now looking at consolidated report by merging reports derived from EMMA and JACOCO.

Is there a feasibility to achieve that above requirement?

Please suggest or provide any inputs

Regards,
Kumar

Evgeny Mandrikov

unread,
Jan 21, 2021, 5:59:53 AM1/21/21
to JaCoCo and EclEmma Users
On Thursday, January 21, 2021 at 11:42:54 AM UTC+1 Kumar Dp wrote:
Hi,

We have dev LRGS where we use EMMA to generate code coverage report and in automation test execution we used JACOCO to generate code coverage report.

Are you talking about http://emma.sourceforge.net/ ?
As far as I know EMMA project is not developed anymore and doesn't support modern Java versions greater than 5,
and that's why JaCoCo was developed as replacement - see https://www.jacoco.org/jacoco/trunk/doc/mission.html
So the advice would be to simply use JaCoCo everywhere.

If you're talking about Eclipse plug-in EclEmma, then instead of EMMA it uses JaCoCo since a very long time - see https://www.eclemma.org/changes.html
And so supports import and export of execution data in JaCoCo format - see https://www.eclemma.org/userdoc/importexport.html

And JaCoCo execution data can be merged - take a look at the documentation, for example "merge" in Command Line Interface - https://www.jacoco.org/jacoco/trunk/doc/cli.html

Management is now looking at consolidated report by merging reports derived from EMMA and JACOCO.

Is there a feasibility to achieve that above requirement?

Please suggest or provide any inputs

Regards,
Kumar

Regards,
Evgeny

Reply all
Reply to author
Forward
0 new messages