使Maven的surefire在控制台中显示stacktrace [英] Make maven's surefire show stacktrace in console

查看:60
本文介绍了使Maven的surefire在控制台中显示stacktrace的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在控制台中查看单元测试的堆栈跟踪. surefire支持吗?

I'd like to see the stacktrace of unit tests in the console. Does surefire support this?

推荐答案

您可以使用以下命令在控制台上查看堆栈跟踪,而不是target/surefire-reports文件夹中的报告文件:

You can use the following command to see the stack trace on console instead of report files in the target/surefire-reports folder:

mvn -Dsurefire.useFile=false test

这篇关于使Maven的surefire在控制台中显示stacktrace的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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