kotest-core / io.kotest.core.extensions / TagExtension

TagExtension

interface TagExtension : Extension

Returns Tags to be used by the Test Engine in determining active tests.

A Tag can be added to any test and then specific tags can be included or excluded via TagExtension instances, which will cause tests that do not match to be skipped.

Note: If multiple extensions are registered then all returned Tags are combined together.

The default SystemPropertyTagExtension is automatically registered which includes and excludes tags using the system properties 'kotest.tags.include' and 'kotest.tags.exclude'.

The default RuntimeTagExtension is automatically registered, which allows to configure tags at runtime (for example, during a configuration procedure) by setting the properties included and excluded.

Functions

tags

abstract fun tags(): Tags

Inheritors

RuntimeTagExtension

Allows including/excluding tags at runtime

object RuntimeTagExtension : TagExtension

SpecifiedTagsTagExtension

class SpecifiedTagsTagExtension : TagExtension

SystemPropertyTagExtension

This TagExtension includes and excludes tags using the system properties 'kotest.tags.include' and 'kotest.tags.exclude'.

object SystemPropertyTagExtension : TagExtension