From 259c329997ce4f66c7b94c9b29ec36539c4fd04c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Kubitz?= Date: Fri, 11 Oct 2024 14:21:40 +0200 Subject: [PATCH] TestRunLogUtil: add stacktrace to stdout Otherwise it's hard to tell which test failed when/first if errors are collected in other logfiles only. --- .../org/eclipse/ui/tests/harness/util/TestRunLogUtil.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/TestRunLogUtil.java b/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/TestRunLogUtil.java index 9d997926a72..83b4d6771cb 100644 --- a/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/TestRunLogUtil.java +++ b/tests/org.eclipse.ui.tests.harness/src/org/eclipse/ui/tests/harness/util/TestRunLogUtil.java @@ -40,6 +40,12 @@ protected void starting(Description description) { System.out.println(formatTestStartMessage(description.getMethodName())); } + @Override + protected void failed(Throwable e, Description description) { + System.out.println(description.getMethodName() + " failed:"); + e.printStackTrace(System.out); + } + @Override protected void finished(Description description) { System.out.println(formatTestFinishedMessage(description.getMethodName()));