kotest-runner-junit5 / io.kotest.runner.junit.platform / kotlin.reflect.KClass / descriptor

descriptor

fun KClass<out Spec>.descriptor(parent: TestDescriptor): TestDescriptor

Creates a new spec-level TestDescriptor from the given class, appending it to the parent TestDescriptor. The created descriptor will have segment type Segment.Spec.