Code coverage of a dependent library in service coverage report

32 views
Skip to first unread message

atulagra...@gmail.com

unread,
Apr 3, 2017, 7:58:14 AM4/3/17
to JaCoCo and EclEmma Users
Hi All,

I have a service which uses 4-5 separately developed libraries. As of now, we can get code coverage of service using JOCoCo but now we also want to include the coverage of dependent libraries in the coverage report.

Is it possible to do it? If yes then any reference for the same would be really helpful.

Also, is it possible to consolidate the coverage report of these dependent libraries across multiple services?


Thanks in advance.

Marc R. Hoffmann

unread,
Apr 3, 2017, 10:01:04 AM4/3/17
to jac...@googlegroups.com
Hi,

in theory all of this is possible with JaCoCo. The question is whether
this works out of the box with exiting integrations.

How do you create your coverage report? With Maven? In this case we have
an enhancement request pending:

https://github.com/jacoco/jacoco/issues/404

Regards,
-marc

atulagra...@gmail.com

unread,
Apr 3, 2017, 10:47:46 AM4/3/17
to JaCoCo and EclEmma Users
Thanks Marc for prompt reply. yes we are looking for a maven based solution.

Evgeny Mandrikov

unread,
Apr 3, 2017, 11:10:00 AM4/3/17
to JaCoCo and EclEmma Users
You can use maven-antrun-plugin and JaCoCo Report Ant Task to analyze and generate report for any JARs / classes already - see http://www.jacoco.org/jacoco/trunk/doc/ant.html
Reply all
Reply to author
Forward
This conversation is locked
You cannot reply and perform actions on locked conversations.
0 new messages