I'd like to see the stacktrace of unit tests in the console. Does surefire support this?
相关问题
- Dependencies while implementing Mocking in Junit4
- How to unit test a reactive component where ngCont
- Access for global variables JavaScript unit testin
- Googletest Parametrized tests crash
- How to resolve Maven exec plugin: classpath too lo
相关文章
- How to replace file-access references for a module
- How to mock methods return object with deleted cop
- What is a good way of cleaning up after a unit tes
-
EF6 DbSet
returns null in Moq - React testing library: Test attribute / prop
- React/JestJS/Enzyme: How to test for ref function?
- python unit testing methods inside of classes
- Running into System.MissingMethodException: Method
A related problem that I found is that surefire in recent versions apparently sets trimStackTrace to true by default (rendering most stack trace in failed tests useless), which is quite inconvenient.
Setting
-DtrimStackTrace=false
or definingsolved this.
You can use the following command to see the stack trace on console instead of report files in the target/surefire-reports folder:
To extend the answer given before, you also can configure this behavior in your
pom.xml
: