NonSuspendingGeneratingFixtureScope

Scope for managing mutable test fixtures that are regenerated for each test. Provides a structured way to define tests that require fresh fixture instances generated before each test.

Parameters

T

The type of fixture object being managed

Properties

Link copied to clipboard
val generator: () -> T

Function that generates new fixture instances

Link copied to clipboard
val testSuite: TestSuite

The parent test suite containing this mutable fixture scope

Functions

Link copied to clipboard
fun test(name: String, displayName: String = name, maxLength: Int = DEFAULT_TEST_NAME_MAX_LEN, testConfig: TestConfig = TestConfig, content: suspend TestExecutionScope.(T) -> Unit)

Registers a test that uses a fresh fixture instance as a child of the current testSuite.

Link copied to clipboard
fun testSuite(name: String, displayName: String = name, maxLength: Int = DEFAULT_TEST_NAME_MAX_LEN, testConfig: TestConfig = TestConfig, content: TestSuite.(T) -> Unit)

Registers a test suite that uses a fresh fixture instance as a child of the current testSuite.