added test failure logging
SonarQube Analysis / Build and Analyze (pull_request) Failing after 2m20s

This commit is contained in:
2026-06-25 21:10:06 +02:00
parent 8183bf61ea
commit 597c941994
+13
View File
@@ -65,3 +65,16 @@ tasks.withType<JavaCompile> {
tasks.withType<Test> { tasks.withType<Test> {
useJUnitPlatform() useJUnitPlatform()
} }
tasks.withType<Test> {
useJUnitPlatform()
// log exact test failures, standard out, and errors in CI
testLogging {
events("failed", "standardError")
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
showExceptions = true
showCauses = true
showStackTraces = true
}
}