spek-api / org.jetbrains.spek.api.dsl

Package org.jetbrains.spek.api.dsl

Types

ActionBody interface ActionBody : TestContainer
Pending sealed class Pending
Spec interface Spec : SpecBody
SpecBody interface SpecBody : TestContainer
TestBody interface TestBody
TestContainer interface TestContainer

Functions

context fun SpecBody.context(description: String, body: SpecBody.() -> Unit): Unit

Creates a group.

describe fun SpecBody.describe(description: String, body: SpecBody.() -> Unit): Unit

Creates a group.

given fun SpecBody.given(description: String, body: SpecBody.() -> Unit): Unit

Creates a group.

it fun TestContainer.it(description: String, body: TestBody.() -> Unit): Unit

Creates a test.

on fun SpecBody.on(description: String, body: ActionBody.() -> Unit): Unit

Creates a group.

xcontext fun SpecBody.xcontext(description: String, reason: String? = null, body: SpecBody.() -> Unit): Unit

Creates a group.

xdescribe fun SpecBody.xdescribe(description: String, reason: String? = null, body: SpecBody.() -> Unit): Unit

Creates a group.

xgiven fun SpecBody.xgiven(description: String, reason: String? = null, body: SpecBody.() -> Unit): Unit

Creates a group.

xit fun TestContainer.xit(description: String, reason: String? = null, body: TestBody.() -> Unit = {}): Unit

Creates a pending test.

xon fun SpecBody.xon(description: String, reason: String? = null, body: ActionBody.() -> Unit = {}): Unit

Creates a pending group.