Skip to content

Commit 7a62c93

Browse files
committed
fix : fix tests
1 parent b340c4c commit 7a62c93

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

build.gradle

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,26 @@ dependencies {
2525
test {
2626
useJUnitPlatform()
2727
finalizedBy jacocoTestReport
28+
29+
// Enhanced test reporting
30+
testLogging {
31+
events "passed", "skipped", "failed", "standardOut", "standardError"
32+
exceptionFormat "full"
33+
showCauses true
34+
showExceptions true
35+
showStackTraces true
36+
showStandardStreams = true
37+
}
38+
39+
// Print a summary after test execution
40+
afterSuite { desc, result ->
41+
if (!desc.parent) { // Only execute this for the overall test suite
42+
def output = "Results: ${result.resultType} (${result.testCount} tests, ${result.successfulTestCount} successes, ${result.failedTestCount} failures, ${result.skippedTestCount} skipped)"
43+
def startItem = '| ', endItem = ' |'
44+
def repeatLength = startItem.length() + output.length() + endItem.length()
45+
println('\n' + ('-' * repeatLength) + '\n' + startItem + output + endItem + '\n' + ('-' * repeatLength))
46+
}
47+
}
2848
}
2949

3050
// JaCoCo Configuration - NON-BREAKING

0 commit comments

Comments
 (0)