我想把 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"
}
}
暂无答案!
目前还没有任何答案,快来回答吧!