From a91692ded79813815bad08fec7c56c1c789920e4 Mon Sep 17 00:00:00 2001 From: Rongmario Date: Sat, 27 Apr 2024 00:48:57 +0100 Subject: [PATCH] useJUnitPlatform + show_testing_output option --- build.gradle | 6 ++++++ gradle.properties | 1 + 2 files changed, 7 insertions(+) diff --git a/build.gradle b/build.gradle index 080c1d5..9ba85ba 100644 --- a/build.gradle +++ b/build.gradle @@ -247,9 +247,15 @@ compileTestJava { } test { + useJUnitPlatform() javaLauncher.set(javaToolchains.launcherFor { languageVersion = JavaLanguageVersion.of(8) }) + if (propertyBool('show_testing_output')) { + testLogging { + showStandardStreams = true + } + } } String parserChangelog() { diff --git a/gradle.properties b/gradle.properties index 1d72361..861338a 100644 --- a/gradle.properties +++ b/gradle.properties @@ -11,6 +11,7 @@ generate_javadocs_jar = false # Testing enable_junit_testing = true +show_testing_output = false # Mod Information # HIGHLY RECOMMEND complying with SemVer for mod_version: https://semver.org/