Skip to content

Commit a579019

Browse files
Gradle: fix logging of standard out and error streams for tests
1 parent ac54f3f commit a579019

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tests/objectbox-java-test/build.gradle.kts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,12 +111,15 @@ tasks.withType<Test> {
111111
}
112112

113113
testLogging {
114-
showStandardStreams = true
115114
exceptionFormat = TestExceptionFormat.FULL
116115
displayGranularity = 2
116+
// Note: this overwrites showStandardStreams = true, so set it by
117+
// adding the standard out/error events.
117118
events = setOf(
118119
TestLogEvent.STARTED,
119-
TestLogEvent.PASSED
120+
TestLogEvent.PASSED,
121+
TestLogEvent.STANDARD_OUT,
122+
TestLogEvent.STANDARD_ERROR
120123
)
121124
}
122125
}

0 commit comments

Comments
 (0)