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.

TestEventReporterFactory

@ServiceScope(value = Build::class)
interface TestEventReporterFactory(source)

A service that provides access to the test event reporting API.

Since

8.12

Functions

Link copied to clipboard
open fun createTestEventReporter(rootName: String, binaryResultsDirectory: Directory, htmlReportDirectory: Directory): GroupTestEventReporter
Returns an object that can be used to report test events with the default behavior of failing the test task if there are test failures.
abstract fun createTestEventReporter(rootName: String, binaryResultsDirectory: Directory, htmlReportDirectory: Directory, closeThrowsOnTestFailures: Boolean): GroupTestEventReporter
Returns an object that can be used to report test events.