Gradle plugin that allows to run android tests on specified devices
Testy is available on jcenter
In your root build.gradle, update the buildscript
section by adding corresponding repository and classpath
buildscript {
repositories {
jcenter()
maven {
url 'http://dl.bintray.com/ghedeon/gradle'
}
}
dependencies {
classpath 'com.android.tools.build:gradle:1.0.1'
classpath 'com.vv.testy:testy:0.1'
}
}
apply testy plugin in your module build.gradle file:
apply plugin: 'com.android.application'
apply plugin: 'testy'
enjoy running tests:
./gradlew connectedAndroidTest -Pdevices=<serial_number1>,<serial_number2>