You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@netbeans.apache.org by Eirik Bakke <eb...@ultorg.com> on 2021/07/25 20:38:15 UTC

New "trimStackTrace" default in surefire, breaks stack traces in Test Results

In recent versions of the maven-surefire-plugin, stack traces are "trimmed" by default. This breaks past behavior in the NetBeans Test Results pane, where you could double-click lines in the stack trace to jump to that part of the code. It also makes the stack traces rather useless in the console output.

In case anyone else bumped into this problem, the fix is to set trimStackTrace=false in pom.xml:

<plugin>
  <groupId>org.apache.maven.plugins</groupId>
  <artifactId>maven-surefire-plugin</artifactId>
  <version>3.0.0-M5</version>
  <configuration>
    <trimStackTrace>false</trimStackTrace>
 </configuration>
</plugin>

This is not a NetBeans bug, but still I wonder if something should be done from the NetBeans side to alert users to this.

(Searching the Apache JIRA for "trimStackTrace" shows several "disable trimStackTrace" type issues in various unrelated Apache projects... this new default seems to baffle everyone.)

-- Eirik