API Documentation: | TestLoggingContainer |
---|
Note: This class is experimental and may change in a future version of Gradle.
Container for all test logging related options. Different options can be set for each log level. Options that are set directly (without specifying a log level) apply to log level LIFECYCLE. Example:
apply plugin: 'java' test { testLogging { // set options for log level LIFECYCLE events "failed" exceptionFormat "short" // set options for log level DEBUG debug { events "started", "skipped", "failed" exceptionFormat "full" } } }
The defaults that are in place show progressively more information on log levels LIFECYCLE, INFO, and DEBUG, respectively.
TestLogging
debug
Note: This property is experimental and may change in a future version of Gradle.
Returns logging options for debug level.
TestLogging
error
Note: This property is experimental and may change in a future version of Gradle.
Returns logging options for error level.
TestLogging
info
Note: This property is experimental and may change in a future version of Gradle.
Gets logging options for info level.
TestLogging
lifecycle
Note: This property is experimental and may change in a future version of Gradle.
Returns logging options for lifecycle level.
TestLogging
quiet
Note: This property is experimental and may change in a future version of Gradle.
Returns logging options for quiet level.
TestLogging
warn
Note: This property is experimental and may change in a future version of Gradle.
Gets logging options for warn level.