提问者:小点点

如何在gradle脚本中为TestNG设置suitethreadpoolsize


我运行多个测试套件并行使用Gradle testNG如何设置suitethreadpoolsize参数使用Gradle时?http://testng.org/doc/documentation-main.html#parallel-suites

谢谢


共1个答案

匿名用户

看起来Gradle目前不支持此参数。https://docs.gradle.org/current/groovydoc/org/gradle/api/tasks/testing/testng/TestNGOptions.html

您只能指定threadCount。像:

test {
    useTestNG() {
        threadCount 3
        ...
    }
}