title: How to get the full stacktrace of failed tests in failsafe?
body: <p>I have a JUnit integration test that fails throwing an exception when executed by the Maven Failsafe plugin. I configured failsafe to write system out to a test-specific file (redirectTestOutputToFile=true). But neither that file nor the XML test result file contains the full stack trace of the exception. As in most cases, the interesting stuff is at the end of the caused-by chain.</p>
  
  <p>Is there a possibility to configure failsafe in a way that records the full stacktrace somewhere?</p>
  
  <p>Of course it would be possible to surround the test itself with a try-catch and log the stack trace manually, but this would lead to a lot of boilerplate code.</p>
  
  <p>Please note: This question does NOT refer to <em>surefire</em>, but to <em>failsafe</em> and has been tagged accordingly. It does not ask of how to show the stacktrace in the <em>console</em> but how to make failsafe save the <em>full</em> stacktrace to a file and not only part of it. <a href="https://stackoverflow.com/a/16941432/994125">This answer</a> is helpful, because it names the correct property, nonetheless it is not exactly correct, because of course the configuration must be applied to failsafe, not to surefire. Moreover, the accepted answer of <a href="https://stackoverflow.com/questions/2928548/make-mavens-surefire-show-stacktrace-in-console">question 2928548</a> is definitively wrong for this question.</p>