withDataSuites

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

Creates a test suite 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

testConfig

Optional test configuration

prefix

an optional prefix to add to the test name

action

Test suite configuration action for each data item


fun <Data> <Error class: unknown class>.withDataSuites(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: <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Creates a test suite 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

action

Test suite configuration action for each data item


fun <Data> <Error class: unknown class>.withDataSuites(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: <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

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

Parameters

map

Map of suite names to test data

testConfig

Optional test configuration

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

action

Test suite configuration action for each map value


fun <Data> <Error class: unknown class>.withDataSuites(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: <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Creates a test suite 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

action

Test suite configuration action for each data item


fun <Data> <Error class: unknown class>.withDataSuites(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: <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Creates a test suite 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

action

Test suite configuration action for each data item


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

Creates a test suite 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

action

Test suite configuration action for each parameter


fun <Data> <Error class: unknown class>.withDataSuites(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: <Error class: unknown class>.(Data) -> Unit): <Error class: unknown class>(source)

Creates a test suite 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

action

Test suite configuration action for each parameter