invoke

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)(source)

Creates a test case with the specified name and configuration.

Parameters

testConfig

Optional test configuration

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

nested

The test body to execute.


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

Creates a configured suite with the specified name and configuration.

Return

A new ConfiguredSuite instance.

Parameters

testConfig

Optional test configuration

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

displayName

Optional display name override