Alex Rivera | Logout

Make maven's surefire show stacktrace in console

Asked 2010-05-28T11:31:29.210
135

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

Edit
Report

1 Answer

60

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
answered 2010-05-28T12:52:44.517

Your Answer