MatrixSuiteScope

Properties

Link copied to clipboard
Link copied to clipboard
open override val matrixConfig: MatrixSuiteConfig

Functions

Link copied to clipboard
Link copied to clipboard
open fun <T> data(values: Iterable<T>, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, MatrixSuiteScope>
open fun <T> data(values: <Error class: unknown class><T>, limit: Long? = null, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, MatrixSuiteScope>
open fun <T> data(name: String, values: Iterable<T>, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, MatrixSuiteScope>
open fun <T> data(name: String, values: <Error class: unknown class><T>, limit: Long? = null, nameFn: NameFn<T> = ::defaultLayerName, replay: Indexes? = null, config: DataLayerConfigBuilder.() -> Unit = {}): DataLayer<T, MatrixSuiteScope>
Link copied to clipboard
Link copied to clipboard
operator fun String.invoke(testConfig: <Error class: unknown class> = TestConfig): MatrixConfiguredSuite

FreeSpec suite ("name"(testConfig) - { … }). testConfig is for aroundAll / aroundEach / context / timeouts only — set concurrency via execution (use the matrixConfig overload), not TestConfig.invocation(...); testScope(...) is sequential-only.

operator fun String.invoke(config: MatrixSuiteConfigBuilder, body: suspend <Error class: unknown class>.() -> Unit)

operator fun String.invoke(testConfig: <Error class: unknown class> = TestConfig, body: suspend <Error class: unknown class>.() -> Unit)

FreeSpec test. testConfig is for aroundAll / aroundEach / context / timeouts only — set concurrency via execution (use the matrixConfig overload), not TestConfig.invocation(...); testScope(...) is sequential-only.

Link copied to clipboard
infix operator fun MatrixConfiguredSuite.minus(body: MatrixSuiteScope.() -> Unit)
infix operator fun String.minus(body: MatrixSuiteScope.() -> Unit)
Link copied to clipboard
open fun <T> property(gen: Gen<T>, iterations: Int = matrixConfig.defaultPropertyIterations, nameFn: NameFn<T> = ::defaultLayerName, replay: Cases? = null, config: PropertyLayerConfigBuilder.() -> Unit = {}): PropertyLayer<T, MatrixSuiteScope>
open fun <T> property(name: String, gen: Gen<T>, iterations: Int = matrixConfig.defaultPropertyIterations, nameFn: NameFn<T> = ::defaultLayerName, replay: Cases? = null, config: PropertyLayerConfigBuilder.() -> Unit = {}): PropertyLayer<T, MatrixSuiteScope>
Link copied to clipboard
fun test(name: String, testConfig: <Error class: unknown class> = TestConfig, body: suspend <Error class: unknown class>.() -> Unit): <Error class: unknown class>

Shorthand; testConfig is for aroundAll / aroundEach / context / timeouts only. Set concurrency via execution (see matrixConfig), not TestConfig.invocation(...); testScope(...) is sequential-only.

fun test(name: String, config: MatrixSuiteConfigBuilder, body: suspend <Error class: unknown class>.() -> Unit)
Link copied to clipboard
fun testSuite(name: String, testConfig: <Error class: unknown class> = TestConfig, body: MatrixSuiteScope.() -> Unit): <Error class: unknown class>

Shorthand wrapping matrixConfig with only a testConfig (aroundAll / aroundEach / context / timeouts). Set concurrency via execution (see matrixConfig), not TestConfig.invocation(...); testScope(...) is sequential-only (matrix disables it when concurrent).