Integration Test Task

15 views
Skip to first unread message

andrew batutin

unread,
Apr 8, 2014, 3:38:43 PM4/8/14
to gradle-androi...@googlegroups.com
Hi!

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?

Here is my build.gradle file :

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
    }
}
Reply all
Reply to author
Forward
0 new messages