让Maven运行所有测试,即使有些失败 [英] Making Maven run all tests, even when some fail

查看:160
本文介绍了让Maven运行所有测试,即使有些失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个包含多个模块的项目。当所有测试通过时,Maven测试都会运行它们。

I have a project with several modules. When all tests pass, Maven test runs them all.

当第一个模块中的测试失败时,maven将不会继续执行下一个项目。我在Surefire设置中将testFailureIgnore设置为true,但它没有帮助。

When tests fail in the first module, maven will not continue to the next project. I have testFailureIgnore set to true in Surefire settings, but it doesn't help.

如何让maven运行所有测试?

How do I make maven run all tests?

推荐答案

我刚刚找到了-fae参数,它导致Maven运行所有测试而不是在失败时停止。

I just found the "-fae" parameter, which causes Maven to run all tests and not stop on failure.

这篇关于让Maven运行所有测试,即使有些失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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