You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ti...@apache.org on 2019/04/16 21:59:25 UTC

[maven-surefire] branch release/3.0.0-M6 updated: [SUREFIRE-1432] Add extension interface with two implementations for trimStackTrace

This is an automated email from the ASF dual-hosted git repository.

tibordigana pushed a commit to branch release/3.0.0-M6
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git


The following commit(s) were added to refs/heads/release/3.0.0-M6 by this push:
     new 8a6b334  [SUREFIRE-1432] Add extension interface with two implementations for trimStackTrace
8a6b334 is described below

commit 8a6b33453d3114e755ad9f0776bd8f5ca7bf3bc0
Author: Davide Angelocola <da...@gmail.com>
AuthorDate: Wed Apr 3 00:11:24 2019 +0200

    [SUREFIRE-1432] Add extension interface with two implementations for trimStackTrace
---
 .../java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java    | 2 +-
 .../src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml       | 3 +++
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
index 856a527..829148b 100644
--- a/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
+++ b/maven-surefire-common/src/main/java/org/apache/maven/plugin/surefire/AbstractSurefireMojo.java
@@ -654,7 +654,7 @@ public abstract class AbstractSurefireMojo
      *
      * @since 2.2
      */
-    @Parameter( property = "trimStackTrace", defaultValue = "true" )
+    @Parameter( property = "trimStackTrace", defaultValue = "false" )
     private boolean trimStackTrace;
 
     /**
diff --git a/surefire-its/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml b/surefire-its/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml
index cef444e..cd4862d 100644
--- a/surefire-its/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml
+++ b/surefire-its/src/test/resources/surefire-818-ignored-tests-on-npe/pom.xml
@@ -31,6 +31,9 @@
             <plugin>
                 <artifactId>maven-surefire-plugin</artifactId>
                 <version>${surefire.version}</version>
+                <configuration>
+                    <trimStackTrace>true</trimStackTrace>
+                </configuration>
             </plugin>
         </plugins>
     </build>