I've tried to setup Jacoco(offline instrumentation) in my gradle multi-module project. I have to use offline instrumentation because there are multiple PowerMock tests in the project.
I have two modules: A and B. Module A has tests that partially cover a code from module B but such code coverage data is missed in my summary report.
My configuration based on stackoverflow answer Jacoco offline instrumentation Gradle script
I've created a test project that demonstrates the issue: https://github.com/SurpSG/jacoco-offline-instrumentation
On the other hand, when I'm using jacoco gradle plugin I can observe that coverage data provided by module A for module B successfully collected to a summary report.
I've created one more test project to demonstrate this: https://github.com/SurpSG/jacoco-gradle-plugin-merge-coverage
Is it a way to collect cross-module code coverage by fixing my build script configuration?