opensavvy.prepared.suite.config¶
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¶
Functions¶
OnlyIf¶
inline fun OnlyIf(predicate: () -> Boolean): TestConfig
Executes this test or ensuite suite only if predicate returns true.