My project structure is as follows: :app, :core. :app is the Android application project, and it depends on my :core aar module, which has all the business logic.
I have Espresso tests for :app, and I am able to run and get coverage report by tasking createDebugCoverageReport. But the coverage is only for code in :app and I do not see any code executed in :core
How do I get coverage for all projects (:app and :core) resulting from my Espressoinstrumentation tests?
The *.ec file was created in app/build by tasking createDebugCoverageReport. Does this coverage contains code in :core, and if not how to trigger that on?
Please help. Greatly appreciated.