Skip to content

Suiteopensavvy.prepared.suite.configTestConfigElement

Element

interface Element : TestConfig

An arbitrary configuration element.

Elements are grouped by their key. The number of elements allowed to exist in the config for a single key is controlled by the Uniqueness. To access an element in a TestConfig, see get.

Note that keys are not necessarily correlated with element types; an element type could split its instances between two different keys, in which case multiple elements of that type could be a part of the same config (but they would still differ by key).

Inheritors

Properties

coroutineContext

The coroutine context configured for this test through the Context configuration.

key

abstract val key: TestConfig.Key<*, *>

The identifier for this test configuration element.

Functions

get

Finds the elements identified by key in the current TestConfig.

Finds the Element identified by key in the current TestConfig.

plus

operator fun TestConfig.plus(other: TestConfig): TestConfig

Combines two TestConfig instances.