PreparedSpec

abstract class PreparedSpec(body: SuiteDsl.() -> Unit) : StringSpec(source)

Constructors

Link copied to clipboard
constructor(body: SuiteDsl.() -> Unit)

Properties

Link copied to clipboard
var assertionMode: AssertionMode?
Link copied to clipboard
var assertions: AssertionMode?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var coroutineDispatcherFactory: CoroutineDispatcherFactory?
Link copied to clipboard
Link copied to clipboard
var defaultTestConfig: DefaultTestConfig?
Link copied to clipboard
var duplicateTestNameMode: DuplicateTestNameMode?
Link copied to clipboard
open val extensions: List<Extension>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var isolationMode: IsolationMode?
Link copied to clipboard
var retries: Int?
Link copied to clipboard
Link copied to clipboard
lateinit var scope: CoroutineScope
Link copied to clipboard
var severity: TestCaseSeverityLevel?
Link copied to clipboard
var testCaseOrder: TestCaseOrder?
Link copied to clipboard
var testExecutionMode: TestExecutionMode?
Link copied to clipboard
var testOrder: TestCaseOrder?
Link copied to clipboard

Functions

Link copied to clipboard
open override fun add(test: RootTest)
Link copied to clipboard
fun afterAny(f: AfterAny)
open suspend fun afterAny(testCase: TestCase, result: TestResult)
Link copied to clipboard
fun afterContainer(f: AfterContainer)
open suspend fun afterContainer(testCase: TestCase, result: TestResult)
Link copied to clipboard
fun afterEach(f: AfterEach)
open suspend fun afterEach(testCase: TestCase, result: TestResult)
Link copied to clipboard
fun afterInvocation(f: AfterInvocation)
Link copied to clipboard
fun afterProject(f: AfterProject)
Link copied to clipboard
open suspend fun afterSpec(spec: Spec)
override fun afterSpec(f: AfterSpec)
Link copied to clipboard
override fun afterTest(f: AfterTest)
open suspend fun afterTest(testCase: TestCase, result: TestResult)
Link copied to clipboard
fun aroundTest(aroundTestFn: AroundTestFn)
Link copied to clipboard
open fun assertionMode(): AssertionMode?
Link copied to clipboard
fun <T : AutoCloseable> autoClose(closeable: T): T
fun <T : AutoCloseable> autoClose(closeable: Lazy<T>): Lazy<T>
Link copied to clipboard
fun autoCloseables(): List<Lazy<AutoCloseable>>
Link copied to clipboard
fun beforeAny(f: BeforeAny)
open suspend fun beforeAny(testCase: TestCase)
Link copied to clipboard
fun beforeContainer(f: BeforeContainer)
open suspend fun beforeContainer(testCase: TestCase)
Link copied to clipboard
fun beforeEach(f: BeforeEach)
open suspend fun beforeEach(testCase: TestCase)
Link copied to clipboard
fun beforeInvocation(f: BeforeInvocation)
Link copied to clipboard
fun beforeSpec(f: BeforeSpec)
open suspend fun beforeSpec(spec: Spec)
Link copied to clipboard
open suspend fun beforeTest(testCase: TestCase)
override fun beforeTest(f: BeforeTest)
Link copied to clipboard
open fun String.config(enabled: Boolean?, invocations: Int?, threads: Int?, tags: Set<Tag>?, timeout: Duration?, extensions: List<TestCaseExtension>?, enabledIf: EnabledIf?, invocationTimeout: Duration?, severity: TestCaseSeverityLevel?, enabledOrReasonIf: EnabledOrReasonIf?, coroutineDebugProbes: Boolean?, blockingTest: Boolean?, test: suspend TestScope.() -> Unit)
Link copied to clipboard
open fun coroutineDispatcherFactory(): CoroutineDispatcherFactory?
Link copied to clipboard
open fun duplicateTestNameMode(): DuplicateTestNameMode?
Link copied to clipboard
fun extension(f: TestCaseExtensionFn)
fun <T : Extension> extension(extension: T): T
Link copied to clipboard
fun extensions(): List<Extension>
fun extensions(vararg extensions: Extension)
fun extensions(extensions: List<Extension>)
Link copied to clipboard
fun include(factory: TestFactory)
fun include(prefix: String, factory: TestFactory)
Link copied to clipboard
open fun invocationTimeout(): Long?
Link copied to clipboard
open operator fun String.invoke(test: suspend StringSpecScope.() -> Unit)
Link copied to clipboard
open fun isolationMode(): IsolationMode?
Link copied to clipboard
fun RootScope.preparedSuite(config: TestConfig = TestConfig.Empty, block: SuiteDsl.() -> Unit)

Executes a Prepared SuiteDsl in a Kotest suite.

Link copied to clipboard
fun <T : Extension> register(extension: T): T
Link copied to clipboard
fun registeredAutoCloseables(): List<Lazy<AutoCloseable>>
Link copied to clipboard
open override fun rootTests(): List<RootTest>
Link copied to clipboard
fun seal()
Link copied to clipboard
open override fun tags(vararg tags: Tag)
open fun tags(): Set<Tag>
Link copied to clipboard
open fun testCaseOrder(): TestCaseOrder?
Link copied to clipboard
open fun testExecutionMode(): TestExecutionMode?
Link copied to clipboard
open fun timeout(): Long?