Package-level declarations

Types

Link copied to clipboard
data class ConfiguredSuite(val parent: TestSuiteScope, val maxLength: Int = FreeSpec.defaultTestNameMaxLength!!, 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(maxLength: Int = FreeSpec.defaultTestNameMaxLength!!, testConfig: TestConfig = TestConfig): ConfiguredSuite

Creates a configured suite with the specified name and configuration.

operator fun String.invoke(maxLength: Int = FreeSpec.defaultTestNameMaxLength!!, testConfig: TestConfig = TestConfig, nested: suspend Test.ExecutionScope.() -> Unit)

Creates a test case with the specified name and configuration.

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

Creates a test suite with the specified name and body.