Igor Kromin |   Consultant. Coder. Blogger. Tinkerer. Gamer.

The Maven Surefire Plugin disables full stack trace display by default when running tests. Sometimes it is useful to see the full stack trace however, here's how you enable it.

As per documentations, use the trimStackTrace parameter and set it to false. Your plugin configuration for Surefire will then be something like this...

That's all you have to do. Next time you run tests and get an exception, the full expanded goodness or the entire stack trace will be bestowed upon you.


Have comments or feedback on what I wrote? Please share them below!
comments powered by Disqus
Other posts you may like...