checkAll

inline fun <Value> TestSuite.checkAll(genA: Gen<Value>, compact: Boolean = PropertyTest.compactByDefault, testConfig: TestConfig = TestConfig, crossinline content: suspend PropertyContext.(TestExecutionScope, Value) -> Unit)

Executes property-based tests with generated values.

Parameters

genA

Generator for test values

testConfig

Optional test configuration

content

Test execution block receiving generated values


inline fun <Value> TestSuite.checkAll(iterations: Int, genA: Gen<Value>, compact: Boolean = PropertyTest.compactByDefault, testConfig: TestConfig = TestConfig, crossinline content: suspend PropertyContext.(TestExecutionScope, Value) -> Unit)

Executes property-based tests with generated values.

Parameters

iterations

Number of test iterations to perform

genA

Generator for test values

testConfig

Optional test configuration

content

Test execution block receiving generated values


inline fun <Value> TestSuite.checkAll(iterations: Int, genA: Gen<Value>, compact: Boolean = PropertyTest.compactByDefault, testConfig: TestConfig = TestConfig): ConfiguredPropertyScope<Value>

Creates a configured property scope for property-based testing with specified iterations.

Parameters

iterations

Number of test iterations to perform

genA

Generator for test values

testConfig

Optional test configuration


inline fun <A> TestSuite.checkAll(genA: Gen<A>, compact: Boolean = PropertyTest.compactByDefault, testConfig: TestConfig = TestConfig): ConfiguredPropertyScope<A>

Creates a configured property scope for property-based testing using default iteration count.

Parameters

genA

Generator for test values

testConfig

Optional test configuration

content

Test suite block receiving generated values