For AI agents: the documentation index is at https://docs.gradle.org/llms.txt. Request any page with the header Accept: text/markdown to get Markdown. User manual pages are also available as Markdown by replacing .html with .md in the URL.

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
}

Since

4.4

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

4.4

Parameters

action

configure action