[SUREFIRE-1616] Smart stacktrace in test summary should not print JUnit5 assertion...
authorTibor17 <tibordigana@apache.org>
Sat, 15 Dec 2018 22:50:30 +0000 (23:50 +0100)
committerTibor17 <tibordigana@apache.org>
Sat, 15 Dec 2018 22:50:30 +0000 (23:50 +0100)
surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java

index 6081a75..134d292 100644 (file)
@@ -132,7 +132,8 @@ public class SmartStackTraceParser
 
         if ( target instanceof AssertionError
                 || "junit.framework.AssertionFailedError".equals( excClassName )
-                || "junit.framework.ComparisonFailure".equals( excClassName ) )
+                || "junit.framework.ComparisonFailure".equals( excClassName )
+                || excClassName.startsWith( "org.opentest4j." ) )
         {
             if ( isNotEmpty( msg ) )
             {