kotest-core / io.kotest.core.extensions / SpecExtension

SpecExtension

interface SpecExtension : Extension

Reusable spec extension that allows intercepting specs before they are executed. The callback is invoked for each Spec that has been submitted for execution.

Functions

intercept

Intercepts execution of a Spec.

abstract suspend fun intercept(spec: KClass<out Spec>, process: suspend () -> Unit): Unit