Gradle: How to get output from test STDERR/STDOUT into console?
Add these lines to build.gradle : apply plugin: ‘java’ test { dependsOn cleanTest testLogging.showStandardStreams = true } Notice: dependsOn cleanTest is not necessary but if not used, you need to run cleanTest or clean task before test task. Edit: A better approach: apply plugin: ‘java’ test { testLogging { outputs.upToDateWhen {false} showStandardStreams = true } … Read more