Package-level declarations

Types

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

Global knobs to tweak the behavior of PropertyTest Addon

Functions

Link copied to clipboard
fun <A> TestSuite.checkAll(genA: Gen<A>, compact: Boolean = PropertyTest.compactByDefault, maxLength: Int = PropertyTest.defaultTestNameMaxLength, displayNameMaxLength: Int = PropertyTest.defaultDisplayNameMaxLength, testConfig: TestConfig = TestConfig): ConfiguredPropertyScope<A>

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

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

Executes property-based tests with generated values.

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

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

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

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

fun <Value> TestSuite.checkAllSuites(iterations: Int, genA: Gen<Value>, compact: Boolean = PropertyTest.compactByDefault, maxLength: Int = PropertyTest.defaultTestNameMaxLength, displayNameMaxLength: Int = PropertyTest.defaultDisplayNameMaxLength, testConfig: TestConfig = TestConfig, content: PropertyContext.(TestSuite, Value) -> Unit)

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