Package-level declarations

Types

Link copied to clipboard
data class ConfiguredSuite(val parent: <Error class: unknown class>, val maxLength: Int = FreeSpec.defaultTestNameMaxLength!!, val displayNameMaxLength: Int = FreeSpec.defaultDisplayNameMaxLength!!, val displayName: String, val testName: String, val config: <Error class: unknown class>)

Represents a configured test suite with its parent suite, name, and configuration.

Link copied to clipboard
object FreeSpec

Global knobs to tweak the behavior of PropertyTest Addon

Functions

Link copied to clipboard
operator fun String.invoke(displayName: String = this, maxLength: Int = FreeSpec.defaultTestNameMaxLength!!, displayNameMaxLength: Int = FreeSpec.defaultDisplayNameMaxLength!!, testConfig: <Error class: unknown class> = TestConfig): ConfiguredSuite

Creates a configured suite with the specified name and configuration.

operator fun String.invoke(displayName: String = this, maxLength: Int = FreeSpec.defaultTestNameMaxLength!!, displayNameMaxLength: Int = FreeSpec.defaultDisplayNameMaxLength!!, testConfig: <Error class: unknown class> = TestConfig, nested: suspend <Error class: unknown class>.() -> Unit)

Creates a test case with the specified name and configuration.

Link copied to clipboard
infix operator fun String.minus(suiteBody: <Error class: unknown class>.() -> Unit): <Error class: unknown class>

Creates a test suite with the specified name and body.