build.gradle.kts, add unit testing

improves #47
This commit is contained in:
soloturn 2022-01-07 02:51:54 +01:00
parent 9cba08f732
commit 284285140c
1 changed files with 16 additions and 0 deletions

View File

@ -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<Jar> {
@ -83,3 +94,8 @@ tasks.withType<Javadoc> {
addStringOption("Xmaxwarns", "1")
}
}
tasks.test {
useJUnitPlatform()
testLogging.showStandardStreams = true
}