Merge jacoco-it.exec

150 views
Skip to first unread message

robbie...@gmail.com

unread,
Aug 24, 2018, 4:17:11 PM8/24/18
to JaCoCo and EclEmma Users
Hi,

I have encoundered a problem while trying to merge several jacoco-it.exec to single .exec file. I have several submodules for which jacoco-it.exec files are generated correctly (jacoco:report-aggregate shows the correct coverage of the classes). However, when I create merged file (using jacoco:merge) it seems that some information from individual jacoco-it.exec files are missing.

All the paths and folders are correct, there is no error while executing the goals. The only problem is the missing information in merged file. Does anybody know what could be causing this problem? Is jacoco:merge meant to be used only for unit test reports or is it also used for integration test reports?

Thank you in advance! 

Evgeny Mandrikov

unread,
Aug 24, 2018, 4:34:02 PM8/24/18
to JaCoCo and EclEmma Users
Hi,

Under the hood "report-aggregate" loads and combines exec-files in exact same way as "merge".
exec-files, merge and everything else in JaCoCo is completely independent from the type of execution whether it is unit, integration or manual.

robbie...@gmail.com

unread,
Aug 27, 2018, 7:19:07 AM8/27/18
to JaCoCo and EclEmma Users
Thank you for your reply!

What I also noticed while generating jacoco-it.exec files with maven plugin is that the generated files is not always the same size and with same data. Sometimes it is missing information about several tests.

Could you tell me what could be causing this issue?

Marc Hoffmann

unread,
Aug 27, 2018, 11:26:06 AM8/27/18
to jac...@googlegroups.com
Hi,

how did you verify the contents of the exec file? You can take a look at the raw data with our command line tool ‘execinfo’ (https://www.jacoco.org/jacoco/trunk/doc/cli.html). Comparing the content of different runs might help to narrow down the problem.

Possible reasons for different content:

- The tests where actually not or differently executed
- Execution data was not or incompletely dumped
- A reset was triggered in the JaCoCo agent

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/76b8fbef-ab8f-42ef-bb91-d10ab3a9319d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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