默认情况下是否可以启用-fae/-fail-at-end? [英] Is it possible to enable -fae/--fail-at-end by default?

查看:149
本文介绍了默认情况下是否可以启用-fae/-fail-at-end?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道我可以使用-fae/-fail-at-end-end命令行选项指示Maven在失败后继续运行.有没有一种方法可以将此行为设置为给定模块的默认行为?

I know I can instruct Maven to keep going after a failure with the -fae/--fail-at-end command-line option. Is there a way to set this behaviour as default for a given module?

某些背景:
我正在从Ant构建转移到基于Maven的构建,并且即使单元测试失败,团队中的其他开发人员也会习惯于完成构建.使用约200个模块的产品,构建需要花费大量时间,并且如果开发人员从一开始就可以看到 all 失败的测试,而不必记住添加-fae选项,则将是理想的选择

Some background:
I'm moving from an Ant build to a Maven-based build, and the other developers on the team are used to the build completing even when there are failed unit tests. With a ~200-module product, the build takes a fair amount of time, and it would be ideal if developers could see all failing tests from the beginning, without having to remember to add the -fae option.

通过阅读Maven文档,我感觉答案是肯定的不",但是我只是想掩盖我的基础,并确保没有某种未记录的方式来做到这一点...

From reading the Maven docs, I get the feeling that the answer is a resounding "no", but I just want to cover my bases and make sure there isn't some sort of undocumented way to do this...

谢谢!

推荐答案

要跳过测试失败,可以使用属性maven.test.failure.ignore.当然,如果您有父poms和子poms,则可以在每个模块中使用此属性.

To skip test failures you can use property maven.test.failure.ignore. Of course you can use this property per module if you have parent and children poms.

这篇关于默认情况下是否可以启用-fae/-fail-at-end?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆