Browse Source

bz-63827 Print out stacktrace in "legacy-xml" when the test is aborted too

master
Jaikiran Pai 5 years ago
parent
commit
02ffb258c8
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java

+ 2
- 0
src/main/org/apache/tools/ant/taskdefs/optional/junitlauncher/LegacyXmlResultFormatter.java View File

@@ -302,6 +302,8 @@ class LegacyXmlResultFormatter extends AbstractJUnitResultFormatter implements T
writer.writeAttribute(ATTR_MESSAGE, message);
}
writer.writeAttribute(ATTR_TYPE, t.getClass().getName());
// write out the stacktrace
writer.writeCData(StringUtils.getStackTrace(cause.get()));
}
writer.writeEndElement();
}


Loading…
Cancel
Save