wasyl
10/22/2020, 8:29 PMsystemProp.KOTEST_DEBUG=true
in gradle.properties
• tasks.withType(Test) { systemProperty("KOTEST_DEBUG", true) }
• exporting KOTEST_DEBUG env variable in console
• passing -DKOTEST_DEBUG=true in ./gradlew paramsoutputs.upToDateWhen { false }
for them, also I see them runningsam
10/22/2020, 8:32 PMexport KOTEST_DEBUG=true
then it should set that env in all forked processes toowasyl
10/22/2020, 8:33 PMenabled() = true
? 😄
I did export KOTEST_DEBUG
, no luck 😞sam
10/22/2020, 8:34 PMtasks.named<Test>("jvmTest") {
useJUnitPlatform()
filter {
isFailOnNoMatchingTests = false
}
testLogging {
showExceptions = true
showStandardStreams = true
events = setOf(TestLogEvent.FAILED, TestLogEvent.PASSED)
exceptionFormat = TestExceptionFormat.FULL
}
}
wasyl
10/22/2020, 8:36 PMshowStandardStreams = true
that’s the fix, I think Gradle starts redirecting System.out
as soon as test
task starts 🙄sam
10/22/2020, 8:37 PMwasyl
10/22/2020, 8:41 PMallprojects {
tasks.withType(Test) {
systemProperty("KOTEST_DEBUG", true)
testLogging {
showStandardStreams = true
}
}
}
sam
10/22/2020, 8:41 PMwasyl
10/22/2020, 8:42 PMsam
10/22/2020, 8:42 PMwasyl
10/22/2020, 8:45 PMsam
10/22/2020, 8:46 PM