Enable testing

This commit is contained in:
Rongmario 2024-04-27 00:25:58 +01:00
parent 83757cd9bc
commit 4cf81e171c
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 0FCCA305CE62BA7C
2 changed files with 7 additions and 0 deletions

View file

@ -140,6 +140,10 @@ dependencies {
transitive = false transitive = false
} }
} }
if (propertyBool('enable_junit_testing')) {
testImplementation 'org.junit.jupiter:junit-jupiter:5.7.1'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
}
} }
apply from: 'gradle/scripts/dependencies.gradle' apply from: 'gradle/scripts/dependencies.gradle'

View file

@ -9,6 +9,9 @@ use_modern_java_syntax = false
generate_sources_jar = true generate_sources_jar = true
generate_javadocs_jar = false generate_javadocs_jar = false
# Testing
enable_junit_testing = true
# Mod Information # Mod Information
# HIGHLY RECOMMEND complying with SemVer for mod_version: https://semver.org/ # HIGHLY RECOMMEND complying with SemVer for mod_version: https://semver.org/
mod_version = 1.0.0 mod_version = 1.0.0