How to generate a coverage report per session?

37 views
Skip to first unread message

José Carlos de Campos

unread,
Aug 25, 2017, 1:10:56 PM8/25/17
to JaCoCo and EclEmma Users
Hi,

Thanks, let me thank this awesome tool.

I managed to generate a jacoco.exec with a few sessions and now I would like to generate
a coverage report per session. Does not need to be like the .html report generated by JaCoCo,
but to keep this post simple, let's assume I want to generated one those reports per session.
I've been playing around with the ExecDump and ReportGenerator examples, but no success
so far. With the ExecDump example I can visit each session, but SessionInfo does not include
any coverage information.

Does the .exec include coverage per session? And if yes, could you please point me out what's
the API I need to use to go through all sessions and get the coverage of each one?


--
Thanks,
Jose

Evgeny Mandrikov

unread,
Aug 29, 2017, 12:43:58 PM8/29/17
to JaCoCo and EclEmma Users
Hi,

After passing following implementation of ISessionInfoVisitor and IExecutionDataVisitor
to ExecutionDataReader you'll get Map from session id into corresponding ExecutionDataStore.

HTH.

Evgeny

José Carlos de Campos

unread,
Aug 29, 2017, 2:31:02 PM8/29/17
to JaCoCo and EclEmma Users
Hi Evgeny,

Thank you so much for your help. It works like a charm.


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