I am in the process of modularising the app I am working on and my coverage has dropped over 20% since splitting my instrumentation tests into the app module.

The app is being split into `app`, `core`, `custom`, where `core` is an android library and the other 2 modules are apps. The majority of the app's functionality will live in `core` and it is currently mostly tested through instrumentation tests which now reside in `app`.

Is there a way that instrumentation tests in an application module can generate a coverage report that will include library module sources?

I looked at this question [here](https://stackoverflow.com/questions/45616769/android-instrumentation-tests-for-library-module-coverage) which bears great similarity to my dilemma but this seems outdated as `publishNonDefault` is deprecated and does nothing as libraries now publish all variants

My efforts are ongoing on [this PR](https://github.com/kiwix/kiwix-android/pull/1541)

It will be difficult to complete modularisation with such a drop of coverage, I would expect the coverage to be unchanged post modularisation.

EDIT: I have created a repro project [here](https://github.com/macgills/MultiModuleCoverageIssue)