API - Comparing two coverage analysis

43 views
Skip to first unread message

luc...@epidataconsulting.com

unread,
Feb 19, 2019, 3:47:47 PM2/19/19
to JaCoCo and EclEmma Users
Hey, I'd like to know if there is a way to find out if two test executions cover the same instructions using the Java API.
Once I run both coverage analysis, how do I make the comparison between them? (I don't even need to know which instructions were covered by each execution, only if the coverage reports are ""equal"").

I hope I am being clear enough.
Thanks in advance!

Evgeny Mandrikov

unread,
Feb 19, 2019, 5:49:28 PM2/19/19
to JaCoCo and EclEmma Users
All documentation is available here - https://www.jacoco.org/jacoco/trunk/doc/
including JavaDocs of available APIs - https://www.jacoco.org/jacoco/trunk/doc/api/index.html
and including API usage examples - https://www.jacoco.org/jacoco/trunk/doc/api.html

To compare reports you can literally compare JaCoCo XML reports, you can find example here - https://github.com/jacoco/jacoco/pull/811/

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