Package-level declarations

Types

Link copied to clipboard
data class ConfiguredPropertyScope<Value>(compact: Boolean, maxLength: Int, displayNameMaxLength: Int, val prefix: String, val testSuite: <Error class: unknown class>, val iterations: Int, val genA: Gen<Value>, val testConfig: <Error class: unknown class> = TestConfig)
Link copied to clipboard

Global knobs to tweak the behavior of PropertyTest Addon

Functions

Link copied to clipboard
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>

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

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>
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>

Executes property-based tests with 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): <Error class: unknown class>

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

Link copied to clipboard
fun <A> <Error class: unknown class>.checkAllSuites(genA: Gen<A>, compact: Boolean = PropertyTest.compactByDefault, maxLength: Int = PropertyTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = PropertyTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, content: PropertyContext.(<Error class: unknown class>, A) -> Unit): <Error class: unknown class>

Creates test suites for property-based testing using default iteration count.

fun <Value> <Error class: unknown class>.checkAllSuites(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: PropertyContext.(<Error class: unknown class>, Value) -> Unit): <Error class: unknown class>

Creates test suites for property-based testing with specified iterations.