I am having issues with calculating code coverage on Android, gradle 2.14.1 with Java 8.
I've added testCoverageEnabled to my apps build.gradle:
apply plugin: 'jacoco'
android {
debug {
testCoverageEnabled true
}
}
I can execute Jacoco with ./gradlew createDebugCoverageReport.
I get my coverage report (both html & .exec) but the coverage is always 0 percent. Anyone has encountered this and solved it?