[英]How to get maven not to fail a build when it fails a test
I'm working on creating a reporting mechanism for tests and I want it to execute after all of the tests are run, and the resulting junit xml files are written out. 我正在为测试创建一个报告机制,我希望它在所有测试运行后执行,并且会写出生成的junit xml文件。 Unfortunately, it doesn't appear that the executing continues after it fails in the test phase.
不幸的是,在测试阶段失败后似乎没有继续执行。 Does anybody know what Maven configuration I could use to get the desired result if possible.
有人知道我可以使用什么Maven配置来获得所需的结果。 Many Thanks.
非常感谢。
May be this helps? 可能这有帮助吗?
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<testFailureIgnore>true</testFailureIgnore>
</configuration>
</plugin>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.