(Gradle 3.2.1) I run some java tests that register output in Stderr / Stdout. I can see this output if I run
gradle test --info
but in this case, most of the unwanted output from 3 party libraries is also there.
The documentation suggests using logging.caputureStandardError / logging.caputureStandardError (loglevel) , but it seems to have no effect.
tasks.withType(Test) { logging.captureStandardOutput LogLevel.QUIET logging.captureStandardError LogLevel.QUIET }
Then, if the gradle test is gradle test , STDERR / STDOUT is not displayed in the console.
How can I get only the result from the test classes in the console?
stdout stderr testing gradle
Alexei Vinogradov
source share