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 2018/12/15 22:50:43 UTC
[maven-surefire] branch master updated: [SUREFIRE-1616] Smart
stacktrace in test summary should not print JUnit5 assertion exception type
This is an automated email from the ASF dual-hosted git repository.
tibordigana pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-surefire.git
The following commit(s) were added to refs/heads/master by this push:
new c6c8f89 [SUREFIRE-1616] Smart stacktrace in test summary should not print JUnit5 assertion exception type
c6c8f89 is described below
commit c6c8f892c39baecfa89a3179c14b50c58aa4750a
Author: Tibor17 <ti...@apache.org>
AuthorDate: Sat Dec 15 23:50:30 2018 +0100
[SUREFIRE-1616] Smart stacktrace in test summary should not print JUnit5 assertion exception type
---
.../java/org/apache/maven/surefire/report/SmartStackTraceParser.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java b/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
index 6081a75..134d292 100644
--- a/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
+++ b/surefire-providers/common-java5/src/main/java/org/apache/maven/surefire/report/SmartStackTraceParser.java
@@ -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 ) )
{