checkAll

fun <A> <Error class: unknown class>.checkAll(genA: Gen<A>, compact: Boolean = PropertyTest.compactByDefault, maxLength: Int = PropertyTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = PropertyTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

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

Parameters

genA

Generator for test values

compact

whether to compact all generated child test elements into one

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Value> <Error class: unknown class>.checkAll(iterations: Int, genA: Gen<Value>, compact: Boolean = PropertyTest.compactByDefault, maxLength: Int = PropertyTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = PropertyTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

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

compact

whether to compact all generated child test elements into one

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Value> <Error class: unknown class>.checkAll(genA: Gen<Value>, compact: Boolean = PropertyTest.compactByDefault, maxLength: Int = PropertyTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = PropertyTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, content: suspend PropertyContext.(<Error class: unknown class>, Value) -> Unit): <Error class: unknown class>(source)

Executes property-based tests with generated values.

Parameters

genA

Generator for test values

compact

whether to compact all generated child test elements into one

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

content

Test execution block receiving generated values


fun <Value> <Error class: unknown class>.checkAll(iterations: Int, genA: Gen<Value>, compact: Boolean = PropertyTest.compactByDefault, maxLength: Int = PropertyTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = PropertyTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, content: suspend PropertyContext.(<Error class: unknown class>, Value) -> Unit): <Error class: unknown class>(source)

Executes property-based tests with generated values.

Parameters

iterations

Number of test iterations to perform

genA

Generator for test values

compact

whether to compact all generated child test elements into one

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

content

Test execution block receiving generated values