https://kotlinlang.org logo
#code-coverage
Title
# code-coverage
a

Andre Theilacker

03/03/2023, 7:27 PM
Hi! I'm having issues with code coverage on my app after adding a new module I have an kotlin android app using AGP 7.4.2, and it generates code coverage reports using JaCoCo, combining the coverage of both unit tests and instrumentation (emulator) tests Both test sets used to have a shared source folder, which contained builders and similar utility functions, but since newer Gradle versions deprecated that, I moved the utility code to a new module :sharedtest (before that, only the module :app existed) The problem is that now the JaCoCo reports only contain coverage for the unit tests. I checked and the instrumentation tests are still running and generating an .ec coverage file, with around 100kB. I renamed the file to .exec, so I could analyze the coverage using Android Studio, but it still showed 0 coverage there Does anyone have any idea on how to solve this?
17 Views