sm runner: hide comparison failure message under diff hyperlink

This commit is contained in:
Anna Kozlova
2015-04-28 16:46:36 +02:00
parent 78f5a45e15
commit 764ef4b47c
@@ -100,7 +100,6 @@ class SMTestSender extends RunListener {
final String trace = failure.getTrace();
final Map attrs = new HashMap();
attrs.put("name", JUnit4ReflectionUtil.getMethodName(failure.getDescription()));
attrs.put("message", failureMessage != null ? failureMessage : "");
final ComparisonFailureData notification = createExceptionNotification(failure.getException());
if (notification != null) {
attrs.put("expected", notification.getExpected());
@@ -112,9 +111,11 @@ class SMTestSender extends RunListener {
if (filePath != null) {
attrs.put("expectedFile", filePath);
}
attrs.put("message", "Comparison Failure:");
} else {
attrs.put("details", trace);
attrs.put("error", "true");
attrs.put("message", failureMessage != null ? failureMessage : "");
}
System.out.println(ServiceMessage.asString(ServiceMessageTypes.TEST_FAILED, attrs));