I'm using Android Studio 1.2.2 and the Gradle plugin 1.2.3.
I'm trying to generate a code coverage report without running gradlew connectedCheck
, just gradlew test
. I want to avoid the need to have a connected device or emulator, so I can speed up the builds on the Jenkins server.
The best I've been able to do so far is to include unit tests execution data in the report, as described here: Jacoco Code Coverage in android studio. This is useful for displaying the results for all the tests, but at the moment I want to run only unit tests (Junit4 and Robolectric).
Is there a way to edit the createDebugCoverageReport
gradle task so that it doesn't run connectedAndroidTest
?
Thank you.