2022-10-20 09:43:33 +02:00
|
|
|
dependencies {
|
2023-10-24 10:37:11 +02:00
|
|
|
testImplementation testLibs.junit.jupiter.api
|
2024-07-30 17:54:09 +02:00
|
|
|
testImplementation testLibs.junit.jupiter.params
|
2023-10-24 10:37:11 +02:00
|
|
|
testImplementation testLibs.hamcrest
|
|
|
|
testRuntimeOnly testLibs.junit.jupiter.engine
|
|
|
|
testRuntimeOnly testLibs.junit.jupiter.platform.launcher
|
2022-10-20 09:43:33 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
failFast = false
|
|
|
|
jvmArgs '--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED',
|
|
|
|
'--add-exports=java.base/jdk.internal.ref=ALL-UNNAMED',
|
|
|
|
'--add-exports=java.base/sun.nio.ch=ALL-UNNAMED',
|
|
|
|
'--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED',
|
|
|
|
'--add-opens=jdk.compiler/com.sun.tools.javac=ALL-UNNAMED',
|
|
|
|
'--add-opens=java.base/java.lang=ALL-UNNAMED',
|
|
|
|
'--add-opens=java.base/java.lang.reflect=ALL-UNNAMED',
|
|
|
|
'--add-opens=java.base/java.io=ALL-UNNAMED',
|
|
|
|
'--add-opens=java.base/java.nio=ALL-UNNAMED',
|
2024-08-01 18:09:12 +02:00
|
|
|
'--add-opens=java.base/java.util=ALL-UNNAMED',
|
|
|
|
'--add-opens=java.base/sun.security.util=ALL-UNNAMED'
|
2022-10-20 09:43:33 +02:00
|
|
|
systemProperty 'java.util.logging.config.file', 'src/test/resources/logging.properties'
|
2024-04-04 19:11:50 +02:00
|
|
|
environment 'NOTIFY_SOCKET', '/run/systemd/notify'
|
2022-10-20 09:43:33 +02:00
|
|
|
testLogging {
|
|
|
|
events 'STARTED', 'PASSED', 'FAILED', 'SKIPPED'
|
2024-05-27 16:48:45 +02:00
|
|
|
showStandardStreams = true
|
2022-10-20 09:43:33 +02:00
|
|
|
}
|
|
|
|
afterSuite { desc, result ->
|
|
|
|
if (!desc.parent) {
|
|
|
|
println "\nTest result: ${result.resultType}"
|
|
|
|
println "Test summary: ${result.testCount} tests, " +
|
|
|
|
"${result.successfulTestCount} succeeded, " +
|
|
|
|
"${result.failedTestCount} failed, " +
|
|
|
|
"${result.skippedTestCount} skipped"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|