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


open fun testLogging(action: Action<out Any>)(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

action

configure action