2020-05-19 16:06:39 +02:00
|
|
|
dependencies {
|
2022-08-04 11:47:14 +02:00
|
|
|
testImplementation libs.junit.jupiter.api
|
|
|
|
testImplementation libs.junit.jupiter.params
|
|
|
|
testImplementation libs.hamcrest
|
|
|
|
testRuntimeOnly libs.junit.jupiter.engine
|
2023-10-04 11:27:45 +02:00
|
|
|
testRuntimeOnly libs.junit.jupiter.platform.launcher
|
2020-05-19 16:06:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2020-09-12 23:24:42 +02:00
|
|
|
failFast = false
|
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"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|