无法在org.gradle.api.tasks.testing.testng.TestNGOptions_Decorated@ae0471c

时间:2015-04-28 05:43:45

标签: java maven gradle testng

我想在configfailurepolicy = continue中设置testng,因为只要@before@after类失败,之后的测试就会被跳过。我是否还需要对testng进行任何更改?

这是我的build.gradle文件:

apply plugin: 'java'
defaultTasks = ['deploy']
/*
 * Task to generate Gradle Wrapper artifacts. This is
 * only required to update the wrapper itself and not
 * needed for regular builds.
 */

task wrapper(type: Wrapper) {
    gradleVersion = '2.3'
    distributionUrl = "http://services.gradle.org/
                       distributions/gradle-2.3-bin.zip"
}

test {
    useTestNG() {
        configFailurePolicy 'continue'
        // includeGroups 'myTestGroup'
    }
}

repositories {
    maven {
        url "http://x.x.x.x:8081/nexus/content/groups/public"
    }
}

0 个答案:

没有答案