GeneratingFixtureScope

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: <Error class: unknown class>

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: <Error class: unknown class> = TestConfig, content: suspend <Error class: unknown class>.(T) -> Unit)

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