ASF Bugzilla – Attachment 36816 Details for
Bug 63827
LegacyXmlResultFormatter of JUnitLauncher Task does not write StackTrace of failure
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch which adds Stacktrace to failures & abortions (without filtering the stacktrace)
patch.txt (text/plain), 1.35 KB, created by
Michael Seele
on 2019-10-10 08:30:36 UTC
(
hide
)
Description:
Patch which adds Stacktrace to failures & abortions (without filtering the stacktrace)
Filename:
MIME Type:
Creator:
Michael Seele
Created:
2019-10-10 08:30:36 UTC
Size:
1.35 KB
patch
obsolete
>diff --git a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java >index 91caca6..cccff61 100644 >--- a/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java >+++ b/src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java >@@ -19,6 +19,7 @@ > > import org.apache.tools.ant.util.DOMElementWriter; > import org.apache.tools.ant.util.DateUtils; >+import org.apache.tools.ant.util.StringUtils; > import org.junit.platform.engine.TestExecutionResult; > import org.junit.platform.engine.TestSource; > import org.junit.platform.engine.reporting.ReportEntry; >@@ -282,6 +283,7 @@ > writer.writeAttribute(ATTR_MESSAGE, message); > } > writer.writeAttribute(ATTR_TYPE, t.getClass().getName()); >+ writer.writeCharacters(StringUtils.getStackTrace(t)); > } > writer.writeEndElement(); > } >@@ -299,6 +301,7 @@ > writer.writeAttribute(ATTR_MESSAGE, message); > } > writer.writeAttribute(ATTR_TYPE, t.getClass().getName()); >+ writer.writeCharacters(StringUtils.getStackTrace(t)); > } > writer.writeEndElement(); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 63827
: 36816