Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1265,15 +1265,14 @@ class BeamModulePlugin implements Plugin<Project> {
if (System.getProperty("os.name").toLowerCase().contains("windows")) {
systemProperty 'org.xerial.snappy.tempdir', System.getProperty('org.xerial.snappy.tempdir') ?: "${project.rootDir.absolutePath}/build/snappy_bin"
}
// Report each test as it runs, plus a per-task summary. Gradle logs only
// failures by default, so a passing run prints nothing but "BUILD SUCCESSFUL"
// and gives no indication of which tests --tests actually selected.
// Test stdout/stderr stays off unless asked for, since it is noisy:
// -PshowTestOutput also forward test stdout/stderr
// A cached or up-to-date test task forks no JVM and prints nothing;
// add --no-build-cache --rerun to force real execution.
// Log skipped and failed tests, plus a per-task summary.
// Pass -PshowTestOutput to also forward test stdout/stderr.
// Pass -PshowTestPassed to also log passed tests.
testLogging {
events 'passed', 'skipped', 'failed'
Comment thread
Abacn marked this conversation as resolved.
events 'skipped', 'failed'
if (project.hasProperty('showTestPassed')) {
events 'passed'
}
exceptionFormat = 'full'
showExceptions = true
showCauses = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Repositories {
def useMirror = isCi && mirrorUrl

if (useMirror) {
project.logger.lifecycle("Running in CI. Mirroring Maven Central repositories via Google Maven Mirror.")
project.logger.debug("Running in CI. Mirroring Maven Central repositories via Google Maven Mirror.")
}

project.repositories {
Expand Down
7 changes: 0 additions & 7 deletions runners/direct-java/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ task needsRunnerTests(type: Test) {
description = "Runs tests that require a runner to validate that pipelines/transforms work correctly"

maxParallelForks 4
testLogging.showStandardStreams = true

String[] pipelineOptions = ["--runner=DirectRunner", "--runnerDeterminedSharding=false"]
systemProperty "beamTestPipelineOptions", pipelineOptionsStringCrossPlatformHandling(pipelineOptions)
Expand All @@ -148,10 +147,6 @@ task needsRunnerTests(type: Test) {
excludeCategories "org.apache.beam.sdk.testing.UsesExternalService"
excludeCategories 'org.apache.beam.sdk.testing.UsesBundleFinalizer'
}
testLogging {
outputs.upToDateWhen {false}
showStandardStreams = true
}
}

// NOTE: This will also run 'NeedsRunner' tests, which are run in the :needsRunnerTests task as well.
Expand Down Expand Up @@ -223,8 +218,6 @@ createJavaExamplesArchetypeValidationTask(type: 'MobileGaming',
task examplesIntegrationTest(type: Test) {
description = "Runs examples tests on DirectRunner"

testLogging.showStandardStreams = true

String[] pipelineOptions = [
"--runner=DirectRunner",
"--runnerDeterminedSharding=false",
Expand Down
6 changes: 0 additions & 6 deletions sdks/java/io/debezium/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -113,13 +113,7 @@ def configureTestJvmArgs(Task task) {
}

test {
testLogging {
outputs.upToDateWhen {false}
showStandardStreams = true
exceptionFormat = 'full'
}
configureTestJvmArgs(delegate)

}

task integrationTest(type: Test, dependsOn: processTestResources) {
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ pluginManagement {
val useMirror = isCi && !mavenCentralMirrorUrl.isNullOrBlank()

if (useMirror) {
logger.lifecycle("Running in CI. Mirroring Maven Central repositories via Google Maven Mirror.")
logger.debug("Running in CI. Mirroring Maven Central repositories via Google Maven Mirror.")
}

repositories {
Expand Down
Loading