From 10d10741016520649579ee3c8f8f7b65e477dc3d Mon Sep 17 00:00:00 2001 From: Sebastian Hartte Date: Fri, 29 Dec 2023 20:29:34 +0100 Subject: [PATCH] Fix tests --- cli/build.gradle | 1 + .../java/net/neoforged/jst/tests/ExecutableJarTest.java | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/cli/build.gradle b/cli/build.gradle index 30133bd..4ab2bb9 100644 --- a/cli/build.gradle +++ b/cli/build.gradle @@ -1,6 +1,7 @@ plugins { id 'java' id 'com.github.johnrengelman.shadow' + id 'maven-publish' } group = 'net.neoforged.jst' diff --git a/tests/src/test/java/net/neoforged/jst/tests/ExecutableJarTest.java b/tests/src/test/java/net/neoforged/jst/tests/ExecutableJarTest.java index dffdbca..cb53fce 100644 --- a/tests/src/test/java/net/neoforged/jst/tests/ExecutableJarTest.java +++ b/tests/src/test/java/net/neoforged/jst/tests/ExecutableJarTest.java @@ -4,8 +4,6 @@ import java.util.Collections; import java.util.List; -import static org.junit.jupiter.api.Assertions.assertEquals; - /** * Runs the same tests as {@link EmbeddedTest}, but runs them by actually running the executable jar * in an external process. @@ -34,6 +32,8 @@ protected void runTool(String... args) throws Exception { System.out.println(new String(output)); int exitCode = process.waitFor(); - assertEquals(0, exitCode); + if (exitCode != 0) { + throw new RuntimeException(new String(output)); + } } }