kotest-core / io.kotest.core.spec.style / DescribeSpecDsl / DescribeScope

DescribeScope

class DescribeScope

Constructors

<init>

DescribeScope(description: Description, context: TestContext, spec: DescribeSpecDsl)

Functions

afterTest

fun afterTest(f: AfterTest): Unit

beforeTest

fun beforeTest(f: BeforeTest): Unit

context

suspend fun context(name: String, test: suspend DescribeScope.() -> Unit): Unit

describe

suspend fun describe(name: String, test: suspend DescribeScope.() -> Unit): Unit

it

fun it(name: String): TestBuilder
suspend fun it(name: String, test: suspend TestContext.() -> Unit): Unit

xdescribe

suspend fun xdescribe(name: String, test: suspend DescribeScope.() -> Unit): Unit

xit

fun xit(name: String): TestBuilder
suspend fun xit(name: String, test: suspend TestContext.() -> Unit): Unit