kotest-core / io.kotest.core / Tag

Tag

abstract class Tag

Base class for all tags. The simple name (without packages) of the singleton derived from this class will be used as name. Two tag object with the same simple name (same object names in different packages) are treated as a single tag.

For example, if you create a Tag com.sksamuel.kotest.SuperTag then the tag name will simply be SuperTag.

Therefore, the tags com.sksamuel.kotest.SuperTag and io.kotest.SuperTag are considered equal.

Constructors

<init>

Base class for all tags. The simple name (without packages) of the singleton derived from this class will be used as name. Two tag object with the same simple name (same object names in different packages) are treated as a single tag.

Tag()

Properties

name

Simple name of the singleton/class derived from this class.

open val name: String

Functions

toString

Same as name.

open fun toString(): String

Companion Object Functions

invoke

operator fun invoke(name: String): StringTag

Inheritors

StringTag

class StringTag : Tag