FeatureStoreContractTest

abstract class FeatureStoreContractTest(body: FunSpec.() -> Unit = {}) : FunSpec(source)

Behaviour every FeatureStore implementation must satisfy. Subclass and implement createStore.

Constructors

Link copied to clipboard
constructor(body: FunSpec.() -> 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
@ExperimentalKotest
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 context(name: String): RootContainerWithConfigBuilder<FunSpecContainerScope>
open fun context(name: String, test: suspend FunSpecContainerScope.() -> Unit)
Link copied to clipboard
open fun coroutineDispatcherFactory(): CoroutineDispatcherFactory?
Link copied to clipboard
abstract suspend fun createStore(): FeatureStore
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(extensions: List<Extension>)
fun extensions(vararg extensions: Extension)
Link copied to clipboard
open fun fcontext(name: String): RootContainerWithConfigBuilder<FunSpecContainerScope>
open fun fcontext(name: String, test: suspend FunSpecContainerScope.() -> Unit)
Link copied to clipboard
open fun ftest(name: String): RootTestWithConfigBuilder
open fun ftest(name: String, test: suspend TestScope.() -> Unit)
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 fun isolationMode(): IsolationMode?
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 test(name: String): RootTestWithConfigBuilder
open fun test(name: String, test: suspend TestScope.() -> Unit)
Link copied to clipboard
open fun testCaseOrder(): TestCaseOrder?
Link copied to clipboard
open fun testExecutionMode(): TestExecutionMode?
Link copied to clipboard
open fun timeout(): Long?
Link copied to clipboard
open fun xcontext(name: String): RootContainerWithConfigBuilder<FunSpecContainerScope>
open fun xcontext(name: String, test: suspend FunSpecContainerScope.() -> Unit)
Link copied to clipboard
open fun xtest(name: String): RootTestWithConfigBuilder
open fun xtest(name: String, test: suspend TestScope.() -> Unit)