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:
15
build.gradle
15
build.gradle
@@ -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
|
||||
}
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user