kotest-core / io.kotest.core.spec / SpecConfigurationMethods / listeners

listeners

open fun listeners(): List<TestListener>

Override this function to register instances of TestListener which will be notified of events during execution of this spec.

If you wish to register a listener that will be notified for all specs, then use AbstractProjectConfig.listeners.