abstract class DslDrivenSpec : Spec
<init> |
DslDrivenSpec() |
addRootTestCase |
Adds a new root-level TestCase to this Spec. fun addRootTestCase(name: String, test: suspend TestContext.() -> Unit, config: TestCaseConfig, type: TestType): Unit |
materializeRootTests |
Materializes the tests defined in this spec as TestCase instances. open fun materializeRootTests(): List<TestCase> |
autoClose |
Closes an AutoCloseable when the spec is completed by registering an afterSpec listener which invokes the AutoCloseable.close method. fun <T : AutoCloseable> TestConfiguration.autoClose(closeable: T): T
Closes a lazy AutoCloseable when the spec is completed by registering an afterSpec listener which invokes the AutoCloseable.close method. fun <T : AutoCloseable> TestConfiguration.autoClose(closeable: Lazy<T>): Lazy<T> |
createTestCase |
fun Spec.createTestCase(name: String, test: suspend TestContext.() -> Unit, config: TestCaseConfig, type: TestType): TestCase |
focusTests |
Returns the focused root tests for this Spec. A focused test is one whose name begins with "f:". fun Spec.focusTests(): List<TestCase> |
invokeAfterSpec |
Notifies the user listeners that a Spec has finished. This will be invoked for every instance of a spec. suspend fun Spec.invokeAfterSpec(): Try<Spec> |
invokeBeforeSpec |
Notifies the user listeners that a Spec is starting. This will be invoked for every instance of a spec. suspend fun Spec.invokeBeforeSpec(): Try<Spec> |
resolvedAssertionMode |
fun Spec.resolvedAssertionMode(): AssertionMode |
resolvedExtensions |
fun Spec.resolvedExtensions(): List<Extension> |
resolvedIsolationMode |
fun Spec.resolvedIsolationMode(): IsolationMode |
resolvedTestCaseOrder |
fun Spec.resolvedTestCaseOrder(): TestCaseOrder |
resolvedTestListeners |
Returns the resolved listeners for a given Spec. That is, the listeners defined directly on the spec, listeners generated from the callback-dsl methods, and listeners defined in any included test factories. fun Spec.resolvedTestListeners(): List<TestListener> |
tempfile |
fun TestConfiguration.tempfile(prefix: String? = null, suffix: String? = ".tmp"): File |
BehaviorSpec |
abstract class BehaviorSpec : DslDrivenSpec, BehaviorSpecDsl |
DescribeSpec |
abstract class DescribeSpec : DslDrivenSpec, DescribeSpecDsl |
ExpectSpec |
abstract class ExpectSpec : DslDrivenSpec, ExpectSpecDsl |
FeatureSpec |
abstract class FeatureSpec : DslDrivenSpec, FeatureSpecDsl |
FreeSpec |
abstract class FreeSpec : DslDrivenSpec, FreeSpecDsl |
FunSpec |
abstract class FunSpec : DslDrivenSpec, FunSpecDsl |
ShouldSpec |
abstract class ShouldSpec : DslDrivenSpec, ShouldSpecDsl |
StringSpec |
abstract class StringSpec : DslDrivenSpec, StringSpecDsl |
WordSpec |
abstract class WordSpec : DslDrivenSpec, WordSpecDsl |