Skip to content

Suiteopensavvy.prepared.suite.configTag

Tag

data class Tag(val name: String) : TestConfig.Element

Marks the test or an entire suite with a tag.

Some test runners may allow the user to only execute tests with a specific tag, or ignore tasks with a specific tag. A single test may be marked with multiple tags.

Example

Tag an entire suite:

suite("Suite name", Tag("slow") + Tag("frontend")) {
    // …
}

Tag a specific test:

test("Some kind of test", config = Tag("slow") + Tag("frontend")) {
    // …
}

Constructors

Tag

constructor(name: String)

Types

Companion

Properties

coroutineContext

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

key

open override val key: Tag.Companion

The identifier for this test configuration element.

name

val name: String

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.