For those using Kotlin/Kotlin DSL for Gradle, you need to put the following in your build.gradle.kts file:
tasks.withType {
this.testLogging {
this.showStandardStreams = true
}
}
Also as mentioned in another answer, you will need to run gradle clean test for the output to print every time.