chore: テスト時のログを変更

This commit is contained in:
usbharu 2023-11-30 00:52:05 +09:00
parent 2175653c54
commit 1a3333d5f8
1 changed files with 1 additions and 21 deletions

View File

@ -1,5 +1,4 @@
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.jetbrains.kotlin.gradle.tasks.KotlinCompile
import org.openapitools.generator.gradle.plugin.tasks.GenerateTask import org.openapitools.generator.gradle.plugin.tasks.GenerateTask
@ -51,10 +50,6 @@ val integrationTest = task<Test>("integrationTest") {
shouldRunAfter("test") shouldRunAfter("test")
useJUnitPlatform() useJUnitPlatform()
testLogging {
events("passed")
}
} }
tasks.check { dependsOn(integrationTest) } tasks.check { dependsOn(integrationTest) }
@ -69,21 +64,6 @@ tasks.withType<Test> {
"--add-opens", "java.base/java.lang=ALL-UNNAMED" "--add-opens", "java.base/java.lang=ALL-UNNAMED"
).toMutableList() ).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 { tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompilationTask<*>>().configureEach {