By default, the Gradle connectedInstrumentTest task generates test reports in .ec ( Emma ) format. If you need a jacoco.exec report file, you need Robolectric + JUnit tests instead of Android unit tests (based on InstrumentationTestCase ). Here is a sample configuration of the JaCoCo Gradle plugin.
source share