kotest-core / io.kotest.core.spec / SpecExecutionOrder

SpecExecutionOrder

interface SpecExecutionOrder

Note: This has no effect on non-JVM targets.

Functions

sort

abstract fun sort(classes: List<KClass<out Spec>>): List<KClass<out Spec>>

Inheritors

FailureFirstSpecExecutionOrder

An implementation of SpecExecutionOrder which will run specs that contained a failed test on a previous run first, before specs where all the tests passed.

object FailureFirstSpecExecutionOrder : SpecExecutionOrder

LexicographicSpecExecutionOrder

An implementation of SpecExecutionOrder which will run specs in a lexicographic order.

object LexicographicSpecExecutionOrder : SpecExecutionOrder

RandomSpecExecutionOrder

An implementation of SpecExecutionOrder which will run specs in a different random order each time the are executed.

object RandomSpecExecutionOrder : SpecExecutionOrder