1
0
mirror of synced 2025-12-25 02:09:19 -05:00

More Readable Gradle test config. (#18890)

The integration testing logs are extremely noisy today. The logs contain the entire test STDOUT and are a pain to read.

This PR contains a better test setup config to reduce logging output.

The main change is to comment out ShowStandardStreams in the integration tests plugin.
Then we add the started event so Gradle shows us when a test is started. Some tests take a longer time. It is useful to know they have begun so it's clear if the job is stuck or not.
Standardise the above setting across all of our custom test tasks.
This commit is contained in:
Davin Chia
2022-11-03 14:39:35 -07:00
committed by GitHub
parent 188612c891
commit 64736f0ab3
2 changed files with 14 additions and 6 deletions

View File

@@ -357,8 +357,9 @@ subprojects { subproj ->
excludeTags(integrationTagName, slowIntegrationTagName, cloudStorageTestTagName)
}
testLogging() {
events 'failed'
events "passed", "skipped", "failed"
exceptionFormat 'full'
// uncomment to get the full log output
// showStandardStreams = true
}
finalizedBy jacocoTestReport
@@ -369,8 +370,10 @@ subprojects { subproj ->
includeTags integrationTagName
}
testLogging() {
events 'failed'
events "passed", "failed", "started"
exceptionFormat 'full'
// uncomment to get the full log output
// showStandardStreams = true
}
finalizedBy jacocoTestReport
}
@@ -380,8 +383,10 @@ subprojects { subproj ->
includeTags slowIntegrationTagName
}
testLogging() {
events 'failed'
events "passed", "failed", "started"
exceptionFormat 'full'
// uncomment to get the full log output
// showStandardStreams = true
}
finalizedBy jacocoTestReport
}
@@ -389,8 +394,10 @@ subprojects { subproj ->
task allTests(type: Test) {
useJUnitPlatform()
testLogging() {
events 'failed'
events "passed", "failed", "started"
exceptionFormat 'full'
// uncomment to get the full log output
// showStandardStreams = true
}
finalizedBy jacocoTestReport
}

View File

@@ -31,9 +31,10 @@ class AirbyteIntegrationTestJavaPlugin implements Plugin<Project> {
}
testLogging() {
events "passed", "failed"
events "passed", "failed", "started"
exceptionFormat "full"
showStandardStreams = true
// uncomment to get the full log output
// showStandardStreams = true
}
outputs.upToDateWhen { false }