From c0e792e24c42f354de1dc54b459a776c5bc85517 Mon Sep 17 00:00:00 2001 From: Jeffrey Date: Tue, 21 Nov 2023 20:46:52 +0100 Subject: [PATCH] debugs --- .../slimefun/e2etester/framework/TestFramework.java | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/io/github/slimefun/e2etester/framework/TestFramework.java b/src/main/java/io/github/slimefun/e2etester/framework/TestFramework.java index 4c62a94..a8c0f4d 100644 --- a/src/main/java/io/github/slimefun/e2etester/framework/TestFramework.java +++ b/src/main/java/io/github/slimefun/e2etester/framework/TestFramework.java @@ -94,9 +94,14 @@ public void runTests(@Nonnull String packageName) { logMessage("caught exception"); if (e.getCause() instanceof TestFailException) { logMessage("test fail exception"); - throw (TestFailException) e.getCause(); + testsFailed++; + logMessage(" x %s", description); + e.printStackTrace(); + } else { + testsFailed++; + logMessage(" x %s", description); + e.printStackTrace(); } - throw new RuntimeException(e); } }); logMessage("we are waiting");