api / org.gradle.api.tasks.testing / AbstractTestTask / testLogging

testLogging

open fun testLogging(closure: Closure<Any>): Unit

Allows configuring the logging of the test execution, for example log eagerly the standard output, etc.

 apply plugin: 'java' // makes the standard streams (err and out) visible at console when running tests test.testLogging { showStandardStreams = true } 

Parameters

closure - configure closure

open fun testLogging(action: Action<in TestLoggingContainer>): Unit

Allows configuring the logging of the test execution, for example log eagerly the standard output, etc.

 apply plugin: 'java' // makes the standard streams (err and out) visible at console when running tests test.testLogging { showStandardStreams = true } 

Parameters

action - configure action

Since
3.5