mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
testng: extract data from junit exceptions if applicable (IDEA-195047)
This commit is contained in:
@@ -225,11 +225,20 @@ public class IDEATestNGRemoteListener {
|
||||
if (ex != null) {
|
||||
ComparisonFailureData notification;
|
||||
try {
|
||||
notification = TestNGExpectedPatterns.createExceptionNotification(failureMessage);
|
||||
notification = ComparisonFailureData.create(ex);
|
||||
}
|
||||
catch (Throwable e) {
|
||||
notification = null;
|
||||
}
|
||||
|
||||
if (notification == null) {
|
||||
try {
|
||||
notification = TestNGExpectedPatterns.createExceptionNotification(failureMessage);
|
||||
}
|
||||
catch (Throwable e) {
|
||||
notification = null;
|
||||
}
|
||||
}
|
||||
ComparisonFailureData.registerSMAttributes(notification, getTrace(ex), failureMessage, attrs, ex);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user