在org.gradle.api.tasks.testing.testng上找不到参数[continue]的configfailurepolicy()方法testngoptions_decorated@ae0471c

u91tlkcl  于 2021-07-13  发布在  Java
关注(0)|答案(0)|浏览(191)

我想把 configfailurepolicy = continuetestng 因为每当 @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"
    }
}

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题