Run jacocoTestReport
task to generate JaCoCo coverage.
There are 2 unit tests (1 junit, 1 instrumentation) in the project, which offers code coverage for the TestClass
class and it's 2 methods (one tested per each test type).
Current issues:
- Starting with AGP 8.2.0, JaCoCo version configuration does not work. Despite specifying version
0.8.11
in the build.gradle file,0.8.8
is used when thejacocoTestReport
task is run (version info is listed in the bottom right of the HTML file). Version0.8.11
is reported when running this onmaster
branch. Check outlatest-agp
branch for working example of this issue. (See https://issuetracker.google.com/issues/298703884)