kotest-core / io.kotest.core.spec.style / ShouldScope

ShouldScope

class ShouldScope

Types

Testbuilder

inner class Testbuilder

Constructors

<init>

ShouldScope(context: TestContext, dsl: SpecDsl)

Properties

context

val context: TestContext

Functions

invoke

suspend operator fun String.invoke(init: suspend ShouldScope.() -> Unit): Unit

should

suspend fun should(name: String, test: suspend TestContext.() -> Unit): Unit
suspend fun should(name: String): Testbuilder