chore: build logging

This commit is contained in:
usbharu 2023-11-29 18:25:02 +09:00
parent 0efd92a371
commit 2d5f547f13
1 changed files with 17 additions and 0 deletions

View File

@ -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<Test> {
"--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<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {