【发布时间】:2015-12-28 06:27:17
【问题描述】:
我正在尝试并行运行我的 TestNG 测试,但它们似乎只是在运行单线程。我正在尝试使用 IntelliJ 14.1.4 社区版和默认内置的 gradle 包装器和 Java 1.8.0_45 来运行它们。
我也尝试过使用独立的 gradle-2.5。
我当前的 build.gradle 文件的测试部分如下所示:
test {
systemProperties System.getProperties()
useTestNG() {
parallel 'tests'
threadCount 3
}
}
我也试过了:
test {
systemProperties System.getProperties()
useTestNG {
options {
parallel = 'tests'
threadCount = 3
}
}
}
和:
test {
systemProperties System.getProperties()
useTestNG {
options ->
options.parallel = 'tests'
options.threadCount = 3
}
}
【问题讨论】: