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

Package org.jetbrains.spek.api.dsl

Types

Dsl interface Dsl
Pending sealed class Pending
SubjectDsl interface SubjectDsl<T> : Dsl

Functions

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

Creates a group.

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

Creates a group.

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

Creates a group.

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

Creates a test.

itBehavesLike fun <T, K : SubjectSpek<T>> SubjectDsl<*>.itBehavesLike(spec: KClass<K>): Unit

Alias for SubjectDsl.includeSubjectSpec.

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

Creates a group.

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

Creates a group.

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

Creates a group.

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

Creates a group.

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

Creates a pending test.

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

Creates a pending group.