kotest-core / io.kotest.core.listeners / TestListener / beforeTest

beforeTest

open suspend fun beforeTest(testCase: TestCase): Unit

This callback will be invoked before a TestCase is executed.

If a test case is inactive (disabled), then this method will not be invoked for that particular test case.

Parameters

testCase - the TestCase about to be executed.