Unable to get Espresso Code coverage report, i am new to android studio and tried following set up for generating the report .
Please find the build.gradle setting:
apply plugin: 'com.getkeepsafe.dexcount'
apply plugin: 'realm-android'
apply plugin: 'jacoco'
buildTypes {
debug {
debuggable true
minifyEnabled false
multiDexEnabled true
testCoverageEnabled true
}
When i run the recorded test with 'CreateDebugAndroidTestCoverage', i get the following Report:
I am expecting columns with methods, line details etc :
Please find the screen shot for the type of report i am expecting :
You need to add configurations for jacoco report by creating a task in your module's Gradle file (Generally,
app/build.gradle
). And in that task, you need to addcreateDebugCoverageReport
fordepnedsOn
property. Let me show you an example of how does it look:Now, you can run this task with coverage and it will provide you the coverage.