Use logback for tests (reduce logging) (#154)

- Sets logback as test logging impl to respect logback-test.xml
- Sets logback-test.xml to WARN by default
- Sets testLogging.showStandardStreams to true to see all WARN logs
This commit is contained in:
Chris Bono
2022-09-28 19:39:07 -05:00
committed by GitHub
parent 4eac6b50f2
commit ef15c4c2f8
2 changed files with 5 additions and 2 deletions

View File

@@ -22,3 +22,7 @@ dependencies {
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:pulsar'
}
test {
testLogging.showStandardStreams = true
}

View File

@@ -25,8 +25,7 @@ dependencies {
optional 'io.projectreactor:reactor-core'
testImplementation 'org.junit.jupiter:junit-jupiter'
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
testRuntimeOnly 'org.apache.logging.log4j:log4j-core'
testRuntimeOnly 'org.apache.logging.log4j:log4j-jcl'
testRuntimeOnly 'ch.qos.logback:logback-classic:1.4.1'
testImplementation 'io.micrometer:micrometer-observation-test'
testImplementation 'io.micrometer:micrometer-tracing-bridge-brave'
testImplementation 'io.micrometer:micrometer-tracing-test'