2020-05-19 16:06:39 +02:00
|
|
|
dependencies {
|
2024-04-08 16:04:18 +02: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
|
2020-05-19 16:06:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2020-09-12 23:24:42 +02:00
|
|
|
failFast = false
|
2024-04-08 16:04:18 +02:00
|
|
|
systemProperty 'java.util.logging.config.file', 'src/test/resources/logging.properties'
|
|
|
|
|
|
|
|
/*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.unsupported/sun.misc=ALL-UNNAMED',
|
|
|
|
'--add-exports=jdk.unsupported/sun.reflect=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',
|
|
|
|
'--add-opens=jdk.unsupported/sun.misc=ALL-UNNAMED',
|
|
|
|
'--add-opens=jdk.unsupported/sun.reflect=ALL-UNNAMED'*/
|
2020-05-19 16:06:39 +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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|