Test module for API module - coverage

24 views
Skip to first unread message

Silviu Burcea

unread,
Oct 1, 2015, 10:08:57 AM10/1/15
to JaCoCo and EclEmma Users
Hello Jacoco experts!

I am truly sorry if this was asked before. I want to have 2 modules in a multi-module project, one is the API code and the other module will contain only tests. Will Jacoco show coverage for API code while running the tests from test module? If it's possible, what needs to be configured?

Thank you very much!
Silviu

Marc Hoffmann

unread,
Oct 2, 2015, 4:05:46 AM10/2/15
to jac...@googlegroups.com
Hi Silviu,

if your build is based on Maven this is not supported out of the box
with the JaCoCo maven plug-in. What you can do as a work-around is to
embed a Ant script which create cross module coverage reports, see for
example our own build:

https://github.com/jacoco/jacoco/blob/master/org.jacoco.doc/pom.xml#L77

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/1182453c-42dd-40e4-9796-2552e3cf00b3%40googlegroups.com
> [1].
> For more options, visit https://groups.google.com/d/optout [2].
>
>
> Links:
> ------
> [1]
> https://groups.google.com/d/msgid/jacoco/1182453c-42dd-40e4-9796-2552e3cf00b3%40googlegroups.com?utm_medium=email&utm_source=footer
> [2] 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