I have an Android project with several library modules. In the application module, I have some control tests that test the main functions of the application, and I want to write code coverage when performing these tests.
When the gradle task "createDebugCoverageReport" is started, a coverage report is created (cover.ec and html report files), but it shows that only classes in the application module are covered, even classes from library modules have also been used.
I also tried writing test coverage using Spoon with a spoon-gradle-plugin . In this case, the coverage report again only covers classes in the application module.
Is there a way to get code coverage for all library modules when running instrumental tests?
I have already added the following in each module:
debug { testCoverageEnabled true }
source share