我想在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"
}
}