testLogging

open fun testLogging(@DelegatesTo(value = TestLoggingContainer::class) closure: Closure)(source)

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


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
}

Since

3.5

Parameters

action

configure action