I have a android lib project with a big number of tests to run. Some of them take quite a lot of time. So i want to separate them into a task.
Does any one has an idea how to create a test task with some specific tests to run?
apply plugin: 'android-library'
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'libs', include: '*.jar')
androidTestCompile ('com.google.dexmaker:dexmaker-mockito:1.0') {
exclude group: 'org.hamcrest'
}
androidTestCompile 'org.hamcrest:hamcrest-all:1.3'
}
android {
compileSdkVersion rootProject.compileSdkVersion
buildToolsVersion rootProject.buildToolsVersion
sourceSets {
integrationTest {
java.srcDirs = ['androidTest/java']
}
androidTest {
java.srcDirs = ['androidTest/java']
}
}
lintOptions {
// Don't abort if Lint finds an error, otherwise the Jenkins build
// will be marked as failed, and Jenkins won't analyse the Lint output
abortOnError false
}
}