MutatingFixtureScope

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: suspend () -> T

Suspending 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, testConfig: TestConfig = TestConfig, action: suspend TestExecutionScope.(T) -> Unit)

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