Coverage across modules

Hi.

I have a maven multimodule project, and among different modules, I have a dao module (without any tests in it) and a service module (with tests in it, and the services use dao’s).

The coverage % of daos are 0% - even though the daos are used in the service-tests.

Is there anything to do about this? I guess the instrumentation agent only instruments the one module it is running, and is not able to pick up that the dao’s are actually executed? Is there a way to configure this so that the execution of daos are measured too?

This is wrong - JaCoCo agent performs instrumentation of all classes.

All in all - please read

which IMO pretty well describes case where tests in one module cover classes in another module.