withData

fun <Data> <Error class: unknown class>.withData(data: Iterable<Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

Creates a configured test suite scope to generate test suites for each item in the provided iterable data.

Parameters

data

The iterable collection of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Data> <Error class: unknown class>.withData(nameFn: (Data) -> String, data: Iterable<Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

Creates a configured test suite scope to generate test suites for each item in the provided iterable data. Uses provided function to generate suite names.

Parameters

nameFn

Function to generate suite name from data

data

The iterable collection of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Data> <Error class: unknown class>.withData(map: Map<String, Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

Creates a configured test suite scope to generate test suites for each entry in the provided map. Uses map keys as suite names.

Parameters

map

Map of suite names to test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Data> <Error class: unknown class>.withData(data: <Error class: unknown class><Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

Creates a configured test suite scope to generate test suites for each item in the provided sequence.

Parameters

data

The sequence of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Data> <Error class: unknown class>.withData(nameFn: (Data) -> String, data: <Error class: unknown class><Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

Creates a configured test suite scope to generate test suites for each item in the provided sequence. Uses provided function to generate suite names.

Parameters

nameFn

Function to generate suite name from data

data

The sequence of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Data> <Error class: unknown class>.withData(vararg parameters: Data, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

Creates a configured test suite scope to generate test suites for each provided data parameter.

Parameters

parameters

The data parameters to create suites for

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Data> <Error class: unknown class>.withData(nameFn: (Data) -> String, vararg parameters: Data, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig): <Error class: unknown class>(source)

Creates a configured test suite scope to generate test suites for each provided data parameter. Uses provided function to generate suite names.

Parameters

nameFn

Function to generate suite name from data

parameters

The data parameters to create suites for

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration


fun <Data> <Error class: unknown class>.withData(data: Iterable<Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, action: suspend <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Executes a test for each item in the provided iterable data.

Parameters

data

The iterable collection of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

action

Test action to execute for each data item


fun <Data> <Error class: unknown class>.withData(nameFn: (Data) -> String, data: Iterable<Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, action: suspend <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Executes a test for each item in the provided iterable data. Uses provided function to generate test names.

Parameters

nameFn

Function to generate test name from data

data

The iterable collection of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

action

Test action to execute for each data item


fun <Data> <Error class: unknown class>.withData(map: Map<String, Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, action: suspend <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Executes a test for each entry in the provided map. Uses map keys as test names.

Parameters

map

Map of test names to test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

action

Test action to execute for each map value


fun <Data> <Error class: unknown class>.withData(data: <Error class: unknown class><Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, action: suspend <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Executes a test for each item in the provided sequence.

Parameters

data

The sequence of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

testConfig

Optional test configuration

action

Test action to execute for each sequence item


fun <Data> <Error class: unknown class>.withData(nameFn: (Data) -> String, data: <Error class: unknown class><Data>, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, action: suspend <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Executes a test for each item in the provided sequence. Uses provided function to generate test names.

Parameters

nameFn

Function to generate test name from data

data

The sequence of test data

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

action

Test action to execute for each sequence item


fun <Data> <Error class: unknown class>.withData(vararg parameters: Data, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, action: suspend <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Executes a test for each provided data parameter.

Parameters

parameters

The data parameters to test with

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

action

Test action to execute for each parameter


fun <Data> <Error class: unknown class>.withData(nameFn: (Data) -> String, vararg parameters: Data, compact: Boolean = DataTest.compactByDefault, maxLength: Int = DataTest.defaultTestNameMaxLength!!, displayNameMaxLength: Int = DataTest.defaultDisplayNameMaxLength!!, prefix: String = "", testConfig: <Error class: unknown class> = TestConfig, action: suspend <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Executes a test for each provided data parameter. Uses provided function to generate test names.

Parameters

nameFn

Function to generate test name from data

parameters

The data parameters to test with

compact

If true, only a single test element is created and the class name of the data parameter is used as test name

maxLength

maximum length of test element name (not display name)

displayNameMaxLength

maximum length of test element display name

prefix

an optional prefix to add to the test name

testConfig

Optional test configuration

action

Test action to execute for each parameter