From 284285140c5f5f73241f654d361b93fdbdd22552 Mon Sep 17 00:00:00 2001 From: soloturn Date: Fri, 7 Jan 2022 02:51:54 +0100 Subject: [PATCH 1/2] build.gradle.kts, add unit testing improves #47 --- build.gradle.kts | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index 83f0f66ed..e3451deb3 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -45,6 +45,17 @@ sourceSets { include("**/*.txt") } } + test { + java { + srcDirs("test/net") + srcDirs("test/nonreg") + } + resources { + srcDirs(".") + include("skin/**/*.skin") + include("themes/**/*.puml") + } + } } tasks.withType { @@ -83,3 +94,8 @@ tasks.withType { addStringOption("Xmaxwarns", "1") } } + +tasks.test { + useJUnitPlatform() + testLogging.showStandardStreams = true +} From 06ca72c6507ed00a52629852a0344c2ad45c6af2 Mon Sep 17 00:00:00 2001 From: soloturn Date: Sun, 9 Jan 2022 01:39:22 +0100 Subject: [PATCH 2/2] build.gradle.kts, bump assertj-core to 3.22.0, junit-jupiter to 5.8.2 --- build.gradle.kts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/build.gradle.kts b/build.gradle.kts index e3451deb3..d6a9acc45 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -10,8 +10,8 @@ repositories { dependencies { compileOnly("org.apache.ant:ant:1.10.12") - testImplementation("org.assertj:assertj-core:3.21.0") - testImplementation("org.junit.jupiter:junit-jupiter:5.8.1") + testImplementation("org.assertj:assertj-core:3.22.0") + testImplementation("org.junit.jupiter:junit-jupiter:5.8.2") testImplementation("org.scilab.forge:jlatexmath:1.0.7") }