From 2d5f547f136140a574fc85b816719d9286da79b9 Mon Sep 17 00:00:00 2001 From: usbharu <64310155+usbharu@users.noreply.github.com> Date: Wed, 29 Nov 2023 18:25:02 +0900 Subject: [PATCH] chore: build logging --- build.gradle.kts | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/build.gradle.kts b/build.gradle.kts index e507ec54..dfa827dd 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -1,3 +1,5 @@ +import org.gradle.api.tasks.testing.logging.TestExceptionFormat +import org.gradle.api.tasks.testing.logging.TestLogEvent import org.jetbrains.kotlin.gradle.tasks.KotlinCompile import org.openapitools.generator.gradle.plugin.tasks.GenerateTask import kotlin.math.max @@ -68,6 +70,21 @@ tasks.withType { "--add-opens", "java.base/java.lang=ALL-UNNAMED" ).toMutableList() } + testLogging { + events( + TestLogEvent.FAILED, + TestLogEvent.SKIPPED, + TestLogEvent.PASSED, + TestLogEvent.STANDARD_OUT, + TestLogEvent.STANDARD_ERROR, + TestLogEvent.STARTED + ) + exceptionFormat = TestExceptionFormat.FULL + showCauses = true + showExceptions = true + showStackTraces = true + setShowStandardStreams(true) + } } tasks.withType>().configureEach {