Don't trim stacktrace for exceptions when running mvn test (#7981)

Motivation:

The maven surefire plugin will trim stacktraces by default which makes these kind of use-less when trying to understand why an test failed because one was thrown.

Modifications:

Configure the plugin to not trim the stacktrace.

Result:

Easier to debug test-failures.
This commit is contained in:
Norman Maurer 2018-05-29 10:59:42 +02:00 committed by GitHub
parent f904c63a53
commit 2e587f75cb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -864,6 +864,8 @@
</property>
</properties>
<jvm>${testJavaHome}/bin/java</jvm>
<!-- Ensure the whole stacktrace is preserved when an exception is thrown. See https://issues.apache.org/jira/browse/SUREFIRE-1457 -->
<trimStackTrace>false</trimStackTrace>
</configuration>
</plugin>
<!-- always produce osgi bundles -->