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");