In my JaCoCo code coverage reports for my espresso tests, all lines and branches are skipped. I am using JaCoCo in an Android application that is built using gradle 1.5.0.
My gradle configuration:
apply plugin: 'jacoco' android { buildTypes { debug { testCoverageEnabled = true } } } jacoco { version '0.7.5.201505241946' }
I followed this blog post: Test Report for Android App .
When I run createDebugCoverageReport , the report is created in the correct folder (build / reports / coverage / flavor / debug / index.html). However, when I open the coverage report, my code is 0% for each instruction and branches. Everything is "skipped."

At first I thought the problem might be with the source code and the test code, but they are located in /src/main/java/ and /src/androidTest/java/
Anyone have an idea how to fix this?
source share