2020-09-12 22:42:03 +02:00
|
|
|
|
|
|
|
dependencies {
|
2023-12-12 19:45:37 +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
|
2020-09-12 22:42:03 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2021-04-08 22:36:40 +02:00
|
|
|
failFast = false
|
2020-09-12 22:42:03 +02:00
|
|
|
testLogging {
|
|
|
|
events 'STARTED', 'PASSED', 'FAILED', 'SKIPPED'
|
|
|
|
}
|
2024-05-22 17:05:12 +02:00
|
|
|
systemProperty 'java.util.logging.config.file', 'src/test/resources/logging.properties'
|
2020-09-12 22:42:03 +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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|