# createTestEventReporter

open fun createTestEventReporter(rootName: String, binaryResultsDirectory: Directory, htmlReportDirectory: Directory): GroupTestEventReporter(source)

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.

#### Return

the test event reporter

#### Since

8.13

#### Parameters

rootName

the name for the root node of the test tree

binaryResultsDirectory

the directory to write binary test results to

htmlReportDirectory

the directory to write HTML test reports to

abstract fun createTestEventReporter(rootName: String, binaryResultsDirectory: Directory, htmlReportDirectory: Directory, closeThrowsOnTestFailures: Boolean): GroupTestEventReporter(source)

Returns an object that can be used to report test events.

#### Return

the test event reporter

#### Since

9.3.0

#### Parameters

rootName

the name for the root node of the test tree

binaryResultsDirectory

the directory to write binary test results to

htmlReportDirectory

the directory to write HTML test reports to

closeThrowsOnTestFailures

determines if this reporter should throw upon close if the root node has been failed, or do nothing