kotest-core / io.kotest.core.spec / kotlin.reflect.KClass / description

description

fun KClass<*>.description(): Description

Returns a Description that can be used for a spec.

If the spec has been annotated with @DisplayName (on supported platforms), then that will be used, otherwise the default is to use the fully qualified class name.

Note: This name must be globally unique. Two specs, even in different packages, cannot share the same name, so if @DisplayName is used, developers must ensure it does not clash with another spec.