kotest-runner-junit5 / io.kotest.runner.junit.platform / org.junit.platform.engine.TestDescriptor

Extensions for org.junit.platform.engine.TestDescriptor

append

Creates a new TestDescriptor appended to the receiver and adds it as a child of the receiver.

fun TestDescriptor.append(description: Description, type: Type, source: TestSource?, segment: Segment): TestDescriptor
fun TestDescriptor.append(name: String, type: Type, source: TestSource?, segment: Segment): TestDescriptor

descriptor

Creates a TestDescriptor for the given TestCase and attaches it to the receiver as a child. The created descriptor will have segment type Segment.Test.

fun TestDescriptor.descriptor(testCase: TestCase): TestDescriptor