Suite • opensavvy.prepared.suite.config
Package-level declarations¶
Types¶
Context
¶
class Context(val context: CoroutineContext) : TestConfig.Element
Configures the CoroutineContext
of the started tests.
CoroutineTimeout
¶
data class CoroutineTimeout(val duration: Duration) : TestConfig.Element
Defines for how long nothing is allowed to happen before the test is automatically stopped.
Ignored
¶
object Ignored : TestConfig.Element, TestConfig.Key.Unique<Ignored>
Marks a test or an entire suite as disabled.
Tag
¶
data class Tag(val name: String) : TestConfig.Element
Marks the test or an entire suite with a tag.
TestConfig
¶
sealed interface TestConfig
Generic configuration description.
Properties¶
coroutineContext
¶
The coroutine context configured for this test through the Context
configuration.
Functions¶
get
¶
operator fun <E : TestConfig.Element> TestConfig.get(key: TestConfig.Key<E, TestConfig.Uniqueness.Multi>): List<E>
Finds the elements
identified by key
in the current TestConfig
.
operator fun <E : TestConfig.Element> TestConfig.get(key: TestConfig.Key<E, TestConfig.Uniqueness.Unique>): E?
Finds the Element
identified by key
in the current TestConfig
.
plus
¶
operator fun TestConfig.plus(other: TestConfig): TestConfig
Combines two TestConfig
instances.