mavenunit-testingstack-tracemaven-surefire-plugin

Make maven's surefire show stacktrace in console


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


Solution

  • 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