Test Logging Container
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"
}
// remove standard output/error logging from --info builds
// by assigning only 'failed' and 'skipped' events
info.events = ["failed", "skipped"]
}
}
Content copied to clipboard
Functions
Link copied to clipboard
Configures logging options for debug level.
Link copied to clipboard
Configures logging options for error level.
Link copied to clipboard
Returns logging options for the specified level.
Link copied to clipboard
Returns logging options for debug level.
Link copied to clipboard
Returns the display granularity of the events to be logged.
Link copied to clipboard
Returns logging options for error level.
Link copied to clipboard
Returns the events to be logged.
Link copied to clipboard
Returns the format to be used for logging test exceptions.
Link copied to clipboard
Gets logging options for info level.
Link copied to clipboard
Returns logging options for lifecycle level.
Link copied to clipboard
Returns the maximum granularity of the events to be logged.
Link copied to clipboard
Returns the minimum granularity of the events to be logged.
Link copied to clipboard
Returns logging options for quiet level.
Link copied to clipboard
Tells whether causes of exceptions that occur during test execution will be logged.
Link copied to clipboard
Tells whether exceptions that occur during test execution will be logged.
Link copied to clipboard
Tells whether stack traces of exceptions that occur during test execution will be logged.
Link copied to clipboard
Tells whether output on standard out and standard error will be logged.
Link copied to clipboard
Returns the set of filters to be used for sanitizing test stack traces.
Link copied to clipboard
Gets logging options for warn level.
Link copied to clipboard
Configures logging options for info level.
Link copied to clipboard
Configures logging options for lifecycle level.
Link copied to clipboard
Configures logging options for quiet level.
Link copied to clipboard
Sets logging options for debug level.
Link copied to clipboard
Sets the display granularity of the events to be logged.
Link copied to clipboard
Sets logging options for error level.
Link copied to clipboard
Sets the format to be used for logging test exceptions.
Link copied to clipboard
Sets logging options for info level.
Link copied to clipboard
Sets logging options for lifecycle level.
Link copied to clipboard
Returns the maximum granularity of the events to be logged.
Link copied to clipboard
Sets the minimum granularity of the events to be logged.
Link copied to clipboard
Sets logging options for quiet level.
Link copied to clipboard
Sets whether causes of exceptions that occur during test execution will be logged.
Link copied to clipboard
Sets whether exceptions that occur during test execution will be logged.
Link copied to clipboard
Sets whether stack traces of exceptions that occur during test execution will be logged.
Link copied to clipboard
Sets whether output on standard out and standard error will be logged.
Link copied to clipboard
Sets the set of filters to be used for sanitizing test stack traces.
Link copied to clipboard
Sets logging options for warn level.
Link copied to clipboard
Convenience method for setStackTraceFilters.
Link copied to clipboard
Configures logging options for warn level.