您如何在 thucydides 中执行并行测试?我尝试设置 Dthucydides.batch.count (和 Dthucydides.batch.size,因为有人提到该计数现在是大小?),Dthucydides.batch.number,将标签放在我项目的 .pom 中的故障安全插件中,使用Maven故障安全插件中的fork选项,但没有任何作用。它会一个接一个地执行测试。
我用来按要求执行测试的 mvn 插件:
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.11</version>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>2.11</version>
<configuration>
<includes>
<include>**/*Test.java</include>
<include>**/Test*.java</include>
<include>**/When*.java</include>
<include>**/*TestSuite.java</include>
</includes>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>