From 3a76720ce3f12a77decb328744adfcc552657905 Mon Sep 17 00:00:00 2001 From: qiuye2024github Date: Thu, 30 Apr 2026 14:00:23 +0800 Subject: [PATCH] ci: allow build without junit tests --- build.gradle | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index cd19a67..79ecb17 100644 --- a/build.gradle +++ b/build.gradle @@ -81,6 +81,11 @@ tasks.withType(JavaCompile).configureEach { options.compilerArgs << "-Aquiet=true" // Suppress mixin notes } +tasks.withType(Test).configureEach { + // Test sources are NeoForge GameTests and are executed by runGameTestServer, not JUnit. + failOnNoDiscoveredTests = false +} + lombok { version = "1.18.38" } @@ -114,4 +119,4 @@ jacocoTestReport { fileTree(dir: it, exclude: '**/mixins/**') })) } -} \ No newline at end of file +}