kotest-core / io.kotest.core.spec / Spec / beforeTest

beforeTest

open fun beforeTest(f: BeforeTest): Unit

Registers a new before-test callback to be executed before every TestCase. The TestCase about to be executed is provided as the parameter.