Package-level declarations

Types

Link copied to clipboard
data class ConfiguredSuite(val parent: TestSuite, val maxLength: Int = FreeSpec.defaultTestNameMaxLength, val displayNameMaxLength: Int = FreeSpec.defaultDisplayNameMaxLength, val displayName: String, val testName: String, val config: TestConfig)

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: TestConfig = 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: TestConfig = TestConfig, nested: suspend TestExecutionScope.() -> Unit)

Creates a test case with the specified name and configuration.

Link copied to clipboard
infix operator fun String.minus(suiteBody: TestSuite.() -> Unit)

Creates a test suite with the specified name and body.