Hi,
Is it possible to get the test coverage with jacoco when I test with Android's JUnit extension.
So my configurations are:
build.gradle
android {
jacoco {
version = '0.7.0.201403182114'
}
...............
defaultConfig {
..........
testInstrumentationRunner "cucumber.api.android.CucumberInstrumentation"
}
...............
buildTypes {
..........
debug {
testCoverageEnabled true
}
}
...............
java test case
@RunWith(Cucumber.class)
@CucumberOptions(
features = "features",
)
public class ApplicationTest extends ApplicationTestCase<Application> {
public ApplicationTest() {
super(Application.class);
}
}
When I run this command "gradlew :library:connectedCheck" jacoco generates an empty file build/outputs/reports/coverage/debug/index.html
Thank you.