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.

TestEventReporter

Reports test events.

Since

8.12

Inheritors

Functions

Link copied to clipboard
abstract fun close()
Close the generator.
Link copied to clipboard
open fun failed(endTime: Instant)
open fun failed(endTime: Instant, message: String)
abstract fun failed(endTime: Instant, message: String, additionalContent: String)
Emit a failure event for the test.
Link copied to clipboard
abstract fun metadata(logTime: Instant, values: Map<String, String>)
abstract fun metadata(logTime: Instant, key: String, value: String)
Emit an event containing metadata about the test or test group currently being run.
Link copied to clipboard
abstract fun output(logTime: Instant, destination: TestOutputEvent.Destination, output: String)
Emit an output event for the test.
Link copied to clipboard
abstract fun skipped(endTime: Instant)
Emit a skipped event for the test.
Link copied to clipboard
abstract fun started(startTime: Instant)
Emit a start event for the test.
Link copied to clipboard
abstract fun succeeded(endTime: Instant)
Emit a successful completion event for the test.