I’ve got some Junit tests set up, and my code (not just my tests) use Logback for output. Essentially what I want is to make it so that only failing tests have their stdout/stderr printed to the console. However, I have this bit in my build.gradle:
test {
testLogging {
events "failed"
showStandardStreams = false
}
}
I was hoping that using this combined with onOutput would give me the functionality I need, but for every single test I’m still getting output like this:
org.forwarder.BatchForwarderTests > forwarderTimersWithSampling STANDARD_OUT
11:48:35.991 [Test worker] DEBUG o.h.f.forwarder.BatchForwarder - prefix:htv.qa
timer:3,5@0.1
anotherTimer:5,12@0.5
What’s going on? How can I actually suppress stdout?