34 lines
1.4 KiB
Groovy
34 lines
1.4 KiB
Groovy
dependencies {
|
|
testImplementation libs.junit.jupiter.api
|
|
testImplementation libs.junit.jupiter.params
|
|
testImplementation libs.hamcrest
|
|
testRuntimeOnly libs.junit.jupiter.engine
|
|
testRuntimeOnly libs.junit.jupiter.platform.launcher
|
|
}
|
|
|
|
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-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',
|
|
'--add-opens=java.base/java.util=ALL-UNNAMED'
|
|
systemProperty 'java.util.logging.config.file', 'src/test/resources/logging.properties'
|
|
systemProperty 'io.netty.tryReflectionSetAccessible', 'false'
|
|
testLogging {
|
|
events 'STARTED', 'PASSED', 'FAILED', 'SKIPPED'
|
|
}
|
|
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"
|
|
}
|
|
}
|
|
}
|