与 Maven 故障安全插件并行运行测试
我正在尝试让我们的集成 api 测试与 Maven 故障安全插件并行运行。
但是当我运行测试时,在 POM 中添加了故障安全插件的参数后,我遇到了这样的步骤问题
Run 1: Expected step: "A" got step: "B"
Run 2: Expected step: "C" got step: "D"
Run 3: Expected step: "E" got step: "F"
This is the POM.有人可以建议吗?谢谢。
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration>
<parallel>classesAndMethods</parallel>
<threadCount>4</threadCount>
<perCoreThreadCount>false</perCoreThreadCount>
<includes>
<include>runner/TestRunner.java</include>
</includes>
<encoding>${project.build.sourceEncoding}</encoding>
<failIfNoTests>true</failIfNoTests>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
I'm trying to get our integration api tests to run in parallel with maven failsafe plugin.
But when I run the tests, with this added parameters for failsafe plugin in POM, I have a problem with steps like this
Run 1: Expected step: "A" got step: "B"
Run 2: Expected step: "C" got step: "D"
Run 3: Expected step: "E" got step: "F"
This is the POM. Can anyone advise please? Thanks.
<plugin>
<artifactId>maven-failsafe-plugin</artifactId>
<version>${maven.failsafe.plugin.version}</version>
<configuration>
<parallel>classesAndMethods</parallel>
<threadCount>4</threadCount>
<perCoreThreadCount>false</perCoreThreadCount>
<includes>
<include>runner/TestRunner.java</include>
</includes>
<encoding>${project.build.sourceEncoding}</encoding>
<failIfNoTests>true</failIfNoTests>
</configuration>
<executions>
<execution>
<goals>
<goal>integration-test</goal>
<goal>verify</goal>
</goals>
</execution>
</executions>
</plugin>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论