How to run coverage through adb

33 views
Skip to first unread message

Preetha Suraj

unread,
Aug 10, 2022, 6:14:32 PM8/10/22
to JaCoCo and EclEmma Users
For my app, on CI we run tests using an adb cli wrapper. We do not use gradle. I am able to generate the reports by updating by build.gradle file and running unit tests or connectedCheck for Android tests. Is there a way to achieve what the below gradle setting does through adb arguments

android {
testOptions {
unitTests.all {
jacoco {
includeNoLocationClasses = true
}
}
unitTests.returnDefaultValues = true
}

buildTypes {
debug {
testCoverageEnabled true
}
}
}



Reply all
Reply to author
Forward
0 new messages