Execute with Kotest • opensavvy.prepared.runner.kotest • PreparedSpec
PreparedSpec¶
abstract class PreparedSpec(body: SuiteDsl.() -> Unit) : StringSpec
Constructors¶
PreparedSpec¶
constructor(body: SuiteDsl.() -> Unit)
Properties¶
assertions¶
var assertions: AssertionMode?
assertSoftly¶
var assertSoftly: Boolean?
blockingTest¶
var blockingTest: Boolean?
concurrency¶
var concurrency: Int?
coroutineDebugProbes¶
var coroutineDebugProbes: Boolean?
coroutineDispatcherFactory¶
var coroutineDispatcherFactory: CoroutineDispatcherFactory?
coroutineTestScope¶
var coroutineTestScope: Boolean?
defaultTestConfig¶
var defaultTestConfig: TestCaseConfig?
dispatcherAffinity¶
var dispatcherAffinity: Boolean?
duplicateTestNameMode¶
var duplicateTestNameMode: DuplicateTestNameMode?
failfast¶
invocationTimeout¶
var invocationTimeout: Long?
isolationMode¶
var isolationMode: IsolationMode?
severity¶
var severity: TestCaseSeverityLevel?
testCoroutineDispatcher¶
testOrder¶
var testOrder: TestCaseOrder?
threads¶
timeout¶
Functions¶
add¶
open override fun add(test: RootTest)
afterAny¶
open suspend fun afterAny(testCase: TestCase, result: TestResult)
afterContainer¶
fun afterContainer(f: suspend (Tuple2<TestCase, TestResult>) -> Unit)
open suspend fun afterContainer(testCase: TestCase, result: TestResult)
afterEach¶
open suspend fun afterEach(testCase: TestCase, result: TestResult)
afterInvocation¶
fun afterInvocation(f: suspend (TestCase, Int) -> Unit)
afterProject¶
fun afterProject(f: AfterProject)
afterSpec¶
open suspend fun afterSpec(spec: Spec)
afterTest¶
open suspend fun afterTest(testCase: TestCase, result: TestResult)
appliedTags¶
fun appliedTags(): Set<Tag>
aroundSpec¶
fun aroundSpec(aroundSpecFn: suspend (Tuple2<KClass<out Spec>, suspend () -> Unit>) -> Unit)
aroundTest¶
fun aroundTest(aroundTestFn: suspend (Tuple2<TestCase, suspend (TestCase) -> TestResult>) -> TestResult)
assertionMode¶
open fun assertionMode(): AssertionMode?
autoClose¶
beforeAny¶
open suspend fun beforeAny(testCase: TestCase)
beforeContainer¶
fun beforeContainer(f: suspend (TestCase) -> Unit)
open suspend fun beforeContainer(testCase: TestCase)
beforeEach¶
fun beforeEach(f: suspend (TestCase) -> Unit)
open suspend fun beforeEach(testCase: TestCase)
beforeInvocation¶
fun beforeInvocation(f: suspend (TestCase, Int) -> Unit)
beforeSpec¶
fun beforeSpec(f: suspend (Spec) -> Unit)
open suspend fun beforeSpec(spec: Spec)
beforeTest¶
open suspend fun beforeTest(testCase: TestCase)
open override fun beforeTest(f: suspend (TestCase) -> Unit)
concurrency¶
open fun concurrency(): Int?
config¶
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)
coroutineDispatcherFactory¶
open fun coroutineDispatcherFactory(): CoroutineDispatcherFactory?
defaultTestCaseConfig¶
open fun defaultTestCaseConfig(): TestCaseConfig?
dispatcherAffinity¶
open fun dispatcherAffinity(): Boolean?
extension¶
fun extension(f: suspend (Tuple2<TestCase, suspend (TestCase) -> TestResult>) -> TestResult)
extensions¶
fun extensions(vararg extensions: Extension)
fun extensions(extensions: List<Extension>)
open fun extensions(): List<Extension>
finalizeSpec¶
fun finalizeSpec(f: suspend (Tuple2<KClass<out Spec>, Map<TestCase, TestResult>>) -> Unit)
globalExtensions¶
open override fun globalExtensions(): List<Extension>
include¶
fun include(factory: TestFactory)
invocationTimeout¶
open fun invocationTimeout(): Long?
invoke¶
isolationMode¶
open fun isolationMode(): IsolationMode?
listener¶
listeners¶
fun listeners(vararg listeners: TestListener)
preparedSuite¶
fun RootScope.preparedSuite(config: TestConfig = TestConfig.Empty, block: SuiteDsl.() -> Unit)
Executes a Prepared SuiteDsl in a Kotest suite.
prependExtension¶
fun prependExtension(extension: Extension)
prependExtensions¶
fun prependExtensions(extensions: List<Extension>)
register¶
fun register(vararg extensions: Extension)
registeredAutoCloseables¶
fun registeredAutoCloseables(): List<Lazy<AutoCloseable>>
registeredExtensions¶
fun registeredExtensions(): List<Extension>
rootTests¶
seal¶
fun seal()
setParentConfiguration¶
fun setParentConfiguration(configuration: TestConfiguration)
tags¶
open override fun tags(vararg tags: Tag)
testCaseOrder¶
open fun testCaseOrder(): TestCaseOrder?