2022-10-20 10:19:32 +02:00
|
|
|
dependencies {
|
2023-11-21 11:40:38 +01:00
|
|
|
testImplementation testLibs.junit.jupiter.api
|
|
|
|
testImplementation testLibs.junit.jupiter.params
|
|
|
|
testImplementation testLibs.hamcrest
|
|
|
|
testRuntimeOnly testLibs.junit.jupiter.engine
|
|
|
|
testRuntimeOnly testLibs.junit.jupiter.platform.launcher
|
2022-10-20 10:19:32 +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-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'
|
2023-10-01 08:51:00 +02:00
|
|
|
systemProperty 'io.netty.tryReflectionSetAccessible', 'false'
|
2024-03-04 16:03:29 +01:00
|
|
|
systemProperty 'io.netty.allocator.typ', 'pooled'
|
|
|
|
systemProperty 'io.netty.noUnsafe', 'true'
|
|
|
|
systemProperty 'io.netty.noKeySetOptimization', 'true'
|
|
|
|
systemProperty 'io.netty.eventLoopThreads', '8'
|
|
|
|
systemProperty 'io.netty.recycler.maxCapacityPerThread', '0'
|
|
|
|
systemProperty 'io.netty.transport.noNative', 'true'
|
2022-10-20 10:19:32 +02:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|