kotest-core
Module Contents
alltypes
Module Contents
abstract class AbstractProjectConfig
typealias AfterProject = () -> Unit
class AfterProjectListenerException : RuntimeException
typealias AfterSpec = suspend (Spec) -> Unit
typealias AfterTest = suspend (Tuple2<TestCase, TestResult>) -> Unit
abstract class AnnotationSpec : Spec
typealias AnnotationSpec = AnnotationSpec
typealias AroundSpecFn = suspend (Tuple2<KClass<out Spec>, suspend () -> Unit>) -> Unit
typealias AroundTestFn = suspend (Tuple2<TestCase, suspend (TestCase) -> TestResult>) -> TestResult
enum class AssertionMode
interface AutoCloseable
annotation class AutoScan
class BeforeBeforeListenerException : RuntimeException
typealias BeforeSpec = suspend (Spec) -> Unit
typealias BeforeTest = suspend (TestCase) -> Unit
abstract class BehaviorSpec : DslDrivenSpec, BehaviorSpecDsl
typealias BehaviorSpec = BehaviorSpec
interface BehaviorSpecDsl : SpecDsl
class BehaviorSpecTestFactoryConfiguration : TestFactoryConfiguration, BehaviorSpecDsl
object CallingThreadExecutionContext : TimeoutExecutionContext
abstract class CompositeSpec : Spec
interface ConstructorExtension : Extension
class ContextScope
abstract class DescribeSpec : DslDrivenSpec, DescribeSpecDsl
typealias DescribeSpec = DescribeSpec
interface DescribeSpecDsl : SpecDsl
Module Contents
open fun describe(name: String, test: suspend DescribeScope.() -> Unit): Unit
class DescribeScope
class TestBuilder
Module Contents
TestBuilder(context: TestContext, name: String, dsl: DescribeSpecDsl, xdisabled: Boolean? = null)
suspend fun config(enabled: Boolean? = null, invocations: Int? = null, threads: Int? = null, tags: Set<Tag>? = null, timeout: Duration? = null, extensions: List<TestCaseExtension>? = null, enabledIf: EnabledIf? = null, test: suspend TestContext.() -> Unit): Unit
val context: TestContext
val dsl: DescribeSpecDsl
val name: String
open fun xdescribe(name: String, test: suspend DescribeScope.() -> Unit): Unit
class DescribeSpecTestFactoryConfiguration : TestFactoryConfiguration, DescribeSpecDsl
data class Description
object Discovery
interface DiscoveryExtension : Extension
sealed class DiscoveryFilter
interface DiscoveryListener
data class DiscoveryRequest
data class DiscoveryResult
sealed class DiscoverySelector
@Target([AnnotationTarget.CLASS]) annotation class DisplayName
@Target([AnnotationTarget.CLASS]) annotation class DoNotParallelize
abstract class DslDrivenSpec : Spec
data class DynamicTest
typealias EnabledIf = (TestCase) -> Boolean
object ExecutorExecutionContext : TimeoutExecutionContext
class ExpectScope
abstract class ExpectSpec : DslDrivenSpec, ExpectSpecDsl
typealias ExpectSpec = ExpectSpec
interface ExpectSpecDsl : SpecDsl
class ExpectSpecTestFactoryConfiguration : TestFactoryConfiguration, ExpectSpecDsl
interface Extension
object FailureFirstSpecExecutionOrder : SpecExecutionOrder
class FeatureScope
abstract class FeatureSpec : DslDrivenSpec, FeatureSpecDsl
typealias FeatureSpec = FeatureSpec
interface FeatureSpecDsl : SpecDsl
class FeatureSpecTestFactoryConfiguration : TestFactoryConfiguration, FeatureSpecDsl
interface Filter
typealias FinalizeSpec = suspend (Tuple2<KClass<out Spec>, Map<TestCase, TestResult>>) -> Unit
abstract class FreeSpec : DslDrivenSpec, FreeSpecDsl
typealias FreeSpec = FreeSpec
interface FreeSpecDsl : SpecDsl
class FreeSpecScope
class FreeSpecTestFactoryConfiguration : TestFactoryConfiguration, FreeSpecDsl
data class FullyQualifiedClassName
abstract class FunSpec : DslDrivenSpec, FunSpecDsl
typealias FunSpec = FunSpec
interface FunSpecDsl : SpecDsl
class FunSpecTestFactoryConfiguration : TestFactoryConfiguration, FunSpecDsl
class GivenAndContext
class GivenContext
@Target([AnnotationTarget.CLASS]) annotation class Ignored
object IgnoredSpecDiscoveryExtension : DiscoveryExtension
class InstancePerLeafSpecRunner : SpecRunner
@ExperimentalTime class InstancePerTestSpecRunner : SpecRunner
enum class IsolationMode
class IsolationTestEngineListener : TestEngineListener
annotation class JsTest
annotation class Junit5EnabledIfSystemProperty
annotation class Junit5TestFactory
object KotestAdapter
@Target([AnnotationTarget.CLASS, AnnotationTarget.FUNCTION]) @DslMarker annotation class KotestDsl
class KotestEngine
kotlin.collections.List
kotlin.collections.List
kotlin.reflect.KClass
kotlin.reflect.KClass
kotlin.reflect.KFunction
kotlin.Throwable
object LexicographicSpecExecutionOrder : SpecExecutionOrder
interface Listener
enum class Modifier
class NamedThreadFactory : ThreadFactory
data class NestedTest
data class PackageName
typealias PrepareSpec = suspend (KClass<out Spec>) -> Unit
object Project
data class ProjectConf
Module Contents
ProjectConf(extensions: List<Extension> = emptyList(), listeners: List<Listener> = emptyList(), filters: List<Filter> = emptyList(), isolationMode: IsolationMode? = null, assertionMode: AssertionMode? = null, testCaseOrder: TestCaseOrder? = null, specExecutionOrder: SpecExecutionOrder? = null, failOnIgnoredTests: Boolean? = null, globalAssertSoftly: Boolean? = null, autoScanEnabled: Boolean = true, autoScanIgnoredClasses: List<KClass<*>> = emptyList(), writeSpecFailureFile: Boolean? = null, specFailureFilePath: String? = null, parallelism: Int? = null, timeout: Duration? = null, testCaseConfig: TestCaseConfig? = null)
val assertionMode: AssertionMode?
val autoScanEnabled: Boolean
val autoScanIgnoredClasses: List<KClass<*>>
val extensions: List<Extension>
val failOnIgnoredTests: Boolean?
val filters: List<Filter>
val globalAssertSoftly: Boolean?
val isolationMode: IsolationMode?
val listeners: List<Listener>
val parallelism: Int?
val specExecutionOrder: SpecExecutionOrder?
val specFailureFilePath: String?
val testCaseConfig: TestCaseConfig?
val testCaseOrder: TestCaseOrder?
val timeout: Duration?
val writeSpecFailureFile: Boolean?
interface ProjectListener : Listener
object RandomSpecExecutionOrder : SpecExecutionOrder
data class RootTest
object RuntimeTagExtension : TagExtension
class ScenarioBuilder
class ShouldScope
abstract class ShouldSpec : DslDrivenSpec, ShouldSpecDsl
typealias ShouldSpec = ShouldSpec
interface ShouldSpecDsl : SpecDsl
class ShouldSpecTestFactoryConfiguration : TestFactoryConfiguration, ShouldSpecDsl
@ExperimentalTime class SingleInstanceSpecRunner : SpecRunner
data class SourceRef
abstract class Spec : TestConfiguration, SpecConfigurationMethods
typealias Spec = Spec
interface SpecConfigurationMethods
interface SpecDsl
interface SpecExecutionOrder
class SpecExecutor
interface SpecExtension : Extension
class SpecifiedTagsTagExtension : TagExtension
abstract class SpecRunner
abstract class StringSpec : DslDrivenSpec, StringSpecDsl
typealias StringSpec = StringSpec
interface StringSpecDsl : SpecDsl
class StringSpecTestFactoryConfiguration : TestFactoryConfiguration, StringSpecDsl
class StringTag : Tag
class SynchronizedTestEngineListener : TestEngineListener
object SystemPropertyTagExtension : TagExtension
abstract class Tag
interface TagExtension : Extension
object TagFilteredDiscoveryExtension : DiscoveryExtension
data class Tags
@Target([AnnotationTarget.CLASS]) annotation class Tags
typealias Test = Test
@Target([AnnotationTarget.CLASS]) annotation class Testable
object TestBuilders
data class TestCase
Module Contents
TestCase(description: Description, spec: Spec, test: suspend TestContext.() -> Unit, source: SourceRef, type: TestType, config: TestCaseConfig = TestCaseConfig(), factoryId: TestFactoryId? = null, assertionMode: AssertionMode? = null)
val assertionMode: AssertionMode?
val config: TestCaseConfig
fun container(description: Description, spec: Spec, test: suspend TestContext.() -> Unit): TestCase
val description: Description
val factoryId: TestFactoryId?
fun getLine(): Int
fun isTopLevel(): Boolean
val name: String
val source: SourceRef
val spec: Spec
val test: suspend TestContext.() -> Unit
fun test(description: Description, spec: Spec, test: suspend TestContext.() -> Unit): TestCase
val type: TestType
data class TestCaseConfig
interface TestCaseExtension : Extension
typealias TestCaseExtensionFn = suspend (Tuple2<TestCase, suspend (TestCase) -> TestResult>) -> TestResult
interface TestCaseFilter : Filter
enum class TestCaseOrder
abstract class TestConfiguration
abstract class TestContext : CoroutineScope
interface TestEngineListener
interface TestExecutionListener
class TestExecutor
data class TestFactory
abstract class TestFactoryConfiguration : TestConfiguration
data class TestFactoryId
enum class TestFilterResult
interface TestListener : Listener
data class TestResult
enum class TestStatus
enum class TestType
class ThenContext
data class TimeoutException : Exception
interface TimeoutExecutionContext
class WhenAndContext
class WhenContext
abstract class WordSpec : DslDrivenSpec, WordSpecDsl
typealias WordSpec = WordSpec
interface WordSpecDsl : SpecDsl
class WordSpecTestFactoryConfiguration : TestFactoryConfiguration, WordSpecDsl
class ZeroAssertionsError : AssertionError
package io.kotest.core
package io.kotest.core.annotation
package io.kotest.core.config
Module Contents
abstract class AbstractProjectConfig
fun Project.createConfigSummary(): String
fun detectConfig(): ProjectConf
fun Project.dumpProjectConfig(): Unit
object Project
data class ProjectConf
Module Contents
ProjectConf(extensions: List<Extension> = emptyList(), listeners: List<Listener> = emptyList(), filters: List<Filter> = emptyList(), isolationMode: IsolationMode? = null, assertionMode: AssertionMode? = null, testCaseOrder: TestCaseOrder? = null, specExecutionOrder: SpecExecutionOrder? = null, failOnIgnoredTests: Boolean? = null, globalAssertSoftly: Boolean? = null, autoScanEnabled: Boolean = true, autoScanIgnoredClasses: List<KClass<*>> = emptyList(), writeSpecFailureFile: Boolean? = null, specFailureFilePath: String? = null, parallelism: Int? = null, timeout: Duration? = null, testCaseConfig: TestCaseConfig? = null)
val assertionMode: AssertionMode?
val autoScanEnabled: Boolean
val autoScanIgnoredClasses: List<KClass<*>>
val extensions: List<Extension>
val failOnIgnoredTests: Boolean?
val filters: List<Filter>
val globalAssertSoftly: Boolean?
val isolationMode: IsolationMode?
val listeners: List<Listener>
val parallelism: Int?
val specExecutionOrder: SpecExecutionOrder?
val specFailureFilePath: String?
val testCaseConfig: TestCaseConfig?
val testCaseOrder: TestCaseOrder?
val timeout: Duration?
val writeSpecFailureFile: Boolean?
package io.kotest.core.engine
package io.kotest.core.engine.discovery
package io.kotest.core.extensions
package io.kotest.core.factory
package io.kotest.core.filters
package io.kotest.core.internal
package io.kotest.core.listeners
package io.kotest.core.runtime
package io.kotest.core.spec
Module Contents
typealias AfterProject = () -> Unit
typealias AfterSpec = suspend (Spec) -> Unit
typealias AfterTest = suspend (Tuple2<TestCase, TestResult>) -> Unit
typealias AroundSpecFn = suspend (Tuple2<KClass<out Spec>, suspend () -> Unit>) -> Unit
typealias AroundTestFn = suspend (Tuple2<TestCase, suspend (TestCase) -> TestResult>) -> TestResult
fun <T : AutoCloseable> TestConfiguration.autoClose(closeable: T): T
fun <T : AutoCloseable> TestConfiguration.autoClose(closeable: Lazy<T>): Lazy<T>
interface AutoCloseable
annotation class AutoScan
typealias BeforeSpec = suspend (Spec) -> Unit
typealias BeforeTest = suspend (TestCase) -> Unit
abstract class CompositeSpec : Spec
fun Spec.createTestCase(name: String, test: suspend TestContext.() -> Unit, config: TestCaseConfig, type: TestType): TestCase
@Target([AnnotationTarget.CLASS]) annotation class DisplayName
@Target([AnnotationTarget.CLASS]) annotation class DoNotParallelize
object FailureFirstSpecExecutionOrder : SpecExecutionOrder
typealias FinalizeSpec = suspend (Tuple2<KClass<out Spec>, Map<TestCase, TestResult>>) -> Unit
fun Spec.focusTests(): List<TestCase>
val initializeRuntime: <ERROR CLASS>
enum class IsolationMode
annotation class JsTest
annotation class Junit5EnabledIfSystemProperty
annotation class Junit5TestFactory
kotlin.collections.List
kotlin.reflect.KClass
object LexicographicSpecExecutionOrder : SpecExecutionOrder
typealias PrepareSpec = suspend (KClass<out Spec>) -> Unit
object RandomSpecExecutionOrder : SpecExecutionOrder
fun Spec.resolvedExtensions(): List<Extension>
fun Spec.resolvedIsolationMode(): IsolationMode
fun Spec.resolvedTestCaseOrder(): TestCaseOrder
fun Spec.resolvedTestListeners(): List<TestListener>
abstract class Spec : TestConfiguration, SpecConfigurationMethods
interface SpecConfigurationMethods
interface SpecDsl
interface SpecExecutionOrder
fun TestConfiguration.tempfile(prefix: String? = null, suffix: String? = ".tmp"): File
@Target([AnnotationTarget.CLASS]) annotation class Testable
typealias TestCaseExtensionFn = suspend (Tuple2<TestCase, suspend (TestCase) -> TestResult>) -> TestResult
abstract class TestConfiguration
package io.kotest.core.spec.style
Module Contents
abstract class AnnotationSpec : Spec
fun behaviorSpec(block: BehaviorSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class BehaviorSpec : DslDrivenSpec, BehaviorSpecDsl
interface BehaviorSpecDsl : SpecDsl
class BehaviorSpecTestFactoryConfiguration : TestFactoryConfiguration, BehaviorSpecDsl
class ContextScope
fun describeSpec(block: DescribeSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class DescribeSpec : DslDrivenSpec, DescribeSpecDsl
interface DescribeSpecDsl : SpecDsl
Module Contents
open fun describe(name: String, test: suspend DescribeScope.() -> Unit): Unit
class DescribeScope
class TestBuilder
Module Contents
TestBuilder(context: TestContext, name: String, dsl: DescribeSpecDsl, xdisabled: Boolean? = null)
suspend fun config(enabled: Boolean? = null, invocations: Int? = null, threads: Int? = null, tags: Set<Tag>? = null, timeout: Duration? = null, extensions: List<TestCaseExtension>? = null, enabledIf: EnabledIf? = null, test: suspend TestContext.() -> Unit): Unit
val context: TestContext
val dsl: DescribeSpecDsl
val name: String
open fun xdescribe(name: String, test: suspend DescribeScope.() -> Unit): Unit
class DescribeSpecTestFactoryConfiguration : TestFactoryConfiguration, DescribeSpecDsl
abstract class DslDrivenSpec : Spec
class ExpectScope
fun expectSpec(block: ExpectSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class ExpectSpec : DslDrivenSpec, ExpectSpecDsl
interface ExpectSpecDsl : SpecDsl
class ExpectSpecTestFactoryConfiguration : TestFactoryConfiguration, ExpectSpecDsl
class FeatureScope
fun featureSpec(block: FeatureSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class FeatureSpec : DslDrivenSpec, FeatureSpecDsl
interface FeatureSpecDsl : SpecDsl
class FeatureSpecTestFactoryConfiguration : TestFactoryConfiguration, FeatureSpecDsl
fun freeSpec(block: FreeSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class FreeSpec : DslDrivenSpec, FreeSpecDsl
interface FreeSpecDsl : SpecDsl
class FreeSpecScope
class FreeSpecTestFactoryConfiguration : TestFactoryConfiguration, FreeSpecDsl
fun funSpec(block: FunSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class FunSpec : DslDrivenSpec, FunSpecDsl
interface FunSpecDsl : SpecDsl
class FunSpecTestFactoryConfiguration : TestFactoryConfiguration, FunSpecDsl
class GivenAndContext
class GivenContext
@Target([AnnotationTarget.CLASS, AnnotationTarget.FUNCTION]) @DslMarker annotation class KotestDsl
kotlin.reflect.KClass
kotlin.reflect.KFunction
class ScenarioBuilder
class ShouldScope
fun shouldSpec(block: ShouldSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class ShouldSpec : DslDrivenSpec, ShouldSpecDsl
interface ShouldSpecDsl : SpecDsl
class ShouldSpecTestFactoryConfiguration : TestFactoryConfiguration, ShouldSpecDsl
fun stringSpec(block: StringSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class StringSpec : DslDrivenSpec, StringSpecDsl
interface StringSpecDsl : SpecDsl
class StringSpecTestFactoryConfiguration : TestFactoryConfiguration, StringSpecDsl
typealias Test = Test
object TestBuilders
class ThenContext
class WhenAndContext
class WhenContext
fun wordSpec(block: WordSpecTestFactoryConfiguration.() -> Unit): TestFactory
abstract class WordSpec : DslDrivenSpec, WordSpecDsl
interface WordSpecDsl : SpecDsl
class WordSpecTestFactoryConfiguration : TestFactoryConfiguration, WordSpecDsl
package io.kotest.core.test
Module Contents
enum class AssertionMode
fun createTestName(prefix: String, name: String): String
val DefaultTestCaseOrder: TestCaseOrder
fun TestCaseConfig.deriveTestConfig(enabled: Boolean? = null, tags: Set<Tag>? = null, extensions: List<TestCaseExtension>? = null, timeout: Duration? = null, enabledIf: EnabledIf? = null, invocations: Int? = null, threads: Int? = null, listeners: List<TestListener>? = null): TestCaseConfig
data class Description
typealias EnabledIf = (TestCase) -> Boolean
suspend fun AssertionMode.executeWithAssertionsCheck(name: String, run: suspend () -> Unit): Unit
fun TestCase.isActive(): Boolean
fun TestCase.isBang(): Boolean
fun TestCase.isFocused(): Boolean
data class NestedTest
fun Spec.resolvedAssertionMode(): AssertionMode
fun TestCaseConfig.resolvedTimeout(): Duration
data class TestCase
Module Contents
TestCase(description: Description, spec: Spec, test: suspend TestContext.() -> Unit, source: SourceRef, type: TestType, config: TestCaseConfig = TestCaseConfig(), factoryId: TestFactoryId? = null, assertionMode: AssertionMode? = null)
val assertionMode: AssertionMode?
val config: TestCaseConfig
fun container(description: Description, spec: Spec, test: suspend TestContext.() -> Unit): TestCase
val description: Description
val factoryId: TestFactoryId?
fun getLine(): Int
fun isTopLevel(): Boolean
val name: String
val source: SourceRef
val spec: Spec
val test: suspend TestContext.() -> Unit
fun test(description: Description, spec: Spec, test: suspend TestContext.() -> Unit): TestCase
val type: TestType
data class TestCaseConfig
enum class TestCaseOrder
abstract class TestContext : CoroutineScope
data class TestResult
enum class TestStatus
enum class TestType
fun NestedTest.toTestCase(spec: Spec, parent: Description): TestCase
class ZeroAssertionsError : AssertionError
package io.kotlintest
package io.kotlintest.specs