Skip navigation links
A B C D E F G H I K L M N O P R S T U W 

A

AbstractAnnotationSpec - Class in io.kotlintest.specs
 
AbstractAnnotationSpec(body) - Constructor for class io.kotlintest.specs.AbstractAnnotationSpec
 
AbstractAnnotationSpec() - Constructor for class io.kotlintest.specs.AbstractAnnotationSpec
 
AbstractAnnotationSpec.After - Interface in io.kotlintest.specs
Marks a function to be executed after each test
AbstractAnnotationSpec.AfterAll - Interface in io.kotlintest.specs
Marks a function to be executed after each spec
AbstractAnnotationSpec.AfterClass - Interface in io.kotlintest.specs
Marks a function to be executed after each spec
AbstractAnnotationSpec.AfterEach - Interface in io.kotlintest.specs
Marks a function to be executed after each test
AbstractAnnotationSpec.Before - Interface in io.kotlintest.specs
Marks a function to be executed before each test
AbstractAnnotationSpec.BeforeAll - Interface in io.kotlintest.specs
Marks a function to be executed before each spec
AbstractAnnotationSpec.BeforeClass - Interface in io.kotlintest.specs
Marks a function to be executed before each spec
AbstractAnnotationSpec.BeforeEach - Interface in io.kotlintest.specs
Marks a function to be executed before each test
AbstractAnnotationSpec.Ignore - Interface in io.kotlintest.specs
Marks a Test to be ignored
AbstractAnnotationSpec.Test - Interface in io.kotlintest.specs
Marks a function to be executed as a Test
AbstractAnnotationSpecKt - Class in io.kotlintest.specs
 
AbstractBehaviorSpec - Class in io.kotlintest.specs
 
AbstractBehaviorSpec(body) - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec
 
AbstractBehaviorSpec() - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec
 
AbstractBehaviorSpec.GivenAndContext - Class in io.kotlintest.specs
 
AbstractBehaviorSpec.GivenContext - Class in io.kotlintest.specs
 
AbstractBehaviorSpec.TestScope - Class in io.kotlintest.specs
 
AbstractBehaviorSpec.ThenContext - Class in io.kotlintest.specs
 
AbstractBehaviorSpec.WhenAndContext - Class in io.kotlintest.specs
 
AbstractBehaviorSpec.WhenContext - Class in io.kotlintest.specs
 
AbstractDescribeSpec - Class in io.kotlintest.specs
 
AbstractDescribeSpec(body) - Constructor for class io.kotlintest.specs.AbstractDescribeSpec
 
AbstractDescribeSpec() - Constructor for class io.kotlintest.specs.AbstractDescribeSpec
 
AbstractDescribeSpec.DescribeScope - Class in io.kotlintest.specs
 
AbstractDescribeSpec.TestBuilder - Class in io.kotlintest.specs
 
AbstractExpectSpec - Class in io.kotlintest.specs
 
AbstractExpectSpec(body) - Constructor for class io.kotlintest.specs.AbstractExpectSpec
 
AbstractExpectSpec() - Constructor for class io.kotlintest.specs.AbstractExpectSpec
 
AbstractExpectSpec.ExpectScope - Class in io.kotlintest.specs
 
AbstractExpectSpec.TestBuilder - Class in io.kotlintest.specs
 
AbstractFeatureSpec - Class in io.kotlintest.specs
 
AbstractFeatureSpec(body) - Constructor for class io.kotlintest.specs.AbstractFeatureSpec
 
AbstractFeatureSpec() - Constructor for class io.kotlintest.specs.AbstractFeatureSpec
 
AbstractFeatureSpec.FeatureScope - Class in io.kotlintest.specs
 
AbstractFeatureSpec.ScenarioBuilder - Class in io.kotlintest.specs
 
AbstractFreeSpec - Class in io.kotlintest.specs
 
AbstractFreeSpec(body) - Constructor for class io.kotlintest.specs.AbstractFreeSpec
 
AbstractFreeSpec() - Constructor for class io.kotlintest.specs.AbstractFreeSpec
 
AbstractFreeSpec.FreeSpecScope - Class in io.kotlintest.specs
 
AbstractFunSpec - Class in io.kotlintest.specs
 
AbstractFunSpec(body) - Constructor for class io.kotlintest.specs.AbstractFunSpec
 
AbstractFunSpec() - Constructor for class io.kotlintest.specs.AbstractFunSpec
 
AbstractFunSpec.ContextScope - Class in io.kotlintest.specs
 
AbstractFunSpec.TestBuilder - Class in io.kotlintest.specs
 
AbstractProjectConfig - Class in io.kotlintest
Project-wide configuration. Extensions returned by an instance of this class will be applied to all interface Spec and class TestCases.
AbstractProjectConfig() - Constructor for class io.kotlintest.AbstractProjectConfig
Project-wide configuration. Extensions returned by an instance of this class will be applied to all interface Spec and class TestCases.
AbstractShouldSpec - Class in io.kotlintest.specs
Example:
AbstractShouldSpec(body) - Constructor for class io.kotlintest.specs.AbstractShouldSpec
Example:
AbstractShouldSpec() - Constructor for class io.kotlintest.specs.AbstractShouldSpec
Example:
AbstractShouldSpec.ShouldScope - Class in io.kotlintest.specs
 
AbstractShouldSpec.Testbuilder - Class in io.kotlintest.specs
 
AbstractSpec - Class in io.kotlintest
 
AbstractSpec() - Constructor for class io.kotlintest.AbstractSpec
 
AbstractStringSpec - Class in io.kotlintest.specs
Example:
AbstractStringSpec(body) - Constructor for class io.kotlintest.specs.AbstractStringSpec
Example:
AbstractStringSpec() - Constructor for class io.kotlintest.specs.AbstractStringSpec
Example:
AbstractWordSpec - Class in io.kotlintest.specs
Example:
AbstractWordSpec(body) - Constructor for class io.kotlintest.specs.AbstractWordSpec
Example:
AbstractWordSpec() - Constructor for class io.kotlintest.specs.AbstractWordSpec
Example:
AbstractWordSpec.FinalTestContext - Class in io.kotlintest.specs
 
AbstractWordSpec.WhenContext - Class in io.kotlintest.specs
 
AbstractWordSpec.WordScope - Class in io.kotlintest.specs
 
ActiveKt - Class in io.kotlintest.internal
 
addTestCase(name, test, config, type) - Method in class io.kotlintest.AbstractSpec
 
afterAll() - Method in class io.kotlintest.AbstractProjectConfig
Executed after the last test of the project, but before the ProjectExtension.afterAll methods.
afterAll() - Method in interface io.kotlintest.extensions.ProjectExtension
Deprecated. 
afterAll($this) - Static method in class io.kotlintest.extensions.ProjectExtension.DefaultImpls
Deprecated. 
afterAll() - Method in class io.kotlintest.Project
 
afterDiscovery(descriptions) - Method in interface io.kotlintest.extensions.TestListener
Is invoked after all the interface Spec classes have been discovered. This callback will be called after any interface DiscoveryExtensions have been invoked.
afterDiscovery($this, descriptions) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Is invoked after all the interface Spec classes have been discovered. This callback will be called after any interface DiscoveryExtensions have been invoked.
afterDiscovery($this, descriptions) - Static method in class io.kotlintest.Spec.DefaultImpls
 
afterProject() - Method in interface io.kotlintest.extensions.TestListener
Is invoked once the Test Engine has finished.
afterProject($this) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Is invoked once the Test Engine has finished.
afterProject($this) - Static method in class io.kotlintest.Spec.DefaultImpls
 
afterScan(classes) - Method in interface io.kotlintest.extensions.DiscoveryExtension
Invoked as soon as the scan phase is complete. At that point, the interface Spec classes have been detected, but not yet instantiated or executed.
afterSpec(spec) - Method in interface io.kotlintest.extensions.TestListener
Is invoked after the class TestCases that are part of a particular interface Spec instance have completed.
afterSpec(description, spec) - Method in interface io.kotlintest.extensions.TestListener
Deprecated. 
afterSpec($this, spec) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Is invoked after the class TestCases that are part of a particular interface Spec instance have completed.
afterSpec($this, description, spec) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Deprecated. 
afterSpec($this, spec) - Static method in class io.kotlintest.Spec.DefaultImpls
 
afterSpec($this, description, spec) - Static method in class io.kotlintest.Spec.DefaultImpls
Deprecated. 
afterSpec(spec) - Method in class io.kotlintest.specs.AbstractAnnotationSpec
Is invoked after the class TestCases that are part of a particular interface Spec instance have completed.
afterSpecClass(spec, results) - Method in interface io.kotlintest.extensions.TestListener
Called once per interface Spec, after all tests have completed for that spec.
afterSpecClass($this, spec, results) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Called once per interface Spec, after all tests have completed for that spec.
afterSpecClass($this, spec, results) - Static method in class io.kotlintest.Spec.DefaultImpls
 
afterSpecCompleted(description, spec) - Method in interface io.kotlintest.extensions.TestListener
Deprecated. 
afterSpecCompleted($this, description, spec) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Deprecated. 
afterSpecCompleted($this, description, spec) - Static method in class io.kotlintest.Spec.DefaultImpls
Deprecated. 
afterTest(testCase, result) - Method in interface io.kotlintest.extensions.TestListener
This callback is invoked after a class TestCase has finished.
afterTest(description, result) - Method in interface io.kotlintest.extensions.TestListener
Deprecated. 
afterTest($this, testCase, result) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
This callback is invoked after a class TestCase has finished.
afterTest($this, description, result) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Deprecated. 
afterTest($this, testCase, result) - Static method in class io.kotlintest.Spec.DefaultImpls
 
afterTest($this, description, result) - Static method in class io.kotlintest.Spec.DefaultImpls
Deprecated. 
afterTest(testCase, result) - Method in class io.kotlintest.specs.AbstractAnnotationSpec
This callback is invoked after a class TestCase has finished.
And(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
and(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
And(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
and(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
And(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenAndContext
 
and(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenAndContext
 
And(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenContext
 
and(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenContext
 
and(name, init, p) - Method in class io.kotlintest.specs.AbstractFeatureSpec.FeatureScope
 
append(name) - Method in class io.kotlintest.Description
 
autoClose(closeable) - Method in class io.kotlintest.AbstractSpec
Registers a field for auto closing after all tests have run.

B

beforeAll() - Method in class io.kotlintest.AbstractProjectConfig
Executed before the first test of the project, but after the ProjectExtension.beforeAll methods.
beforeAll() - Method in interface io.kotlintest.extensions.ProjectExtension
Deprecated. 
beforeAll($this) - Static method in class io.kotlintest.extensions.ProjectExtension.DefaultImpls
Deprecated. 
beforeAll() - Method in class io.kotlintest.Project
 
beforeProject() - Method in interface io.kotlintest.extensions.TestListener
Is invoked once the Test Engine is started.
beforeProject($this) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Is invoked once the Test Engine is started.
beforeProject($this) - Static method in class io.kotlintest.Spec.DefaultImpls
 
beforeSpec(spec) - Method in interface io.kotlintest.extensions.TestListener
This callback is invoked after the Engine instantiates a interface Spec to be used as part of a class TestCase execution.
beforeSpec(description, spec) - Method in interface io.kotlintest.extensions.TestListener
Deprecated. 
beforeSpec($this, spec) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
This callback is invoked after the Engine instantiates a interface Spec to be used as part of a class TestCase execution.
beforeSpec($this, description, spec) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Deprecated. 
beforeSpec($this, spec) - Static method in class io.kotlintest.Spec.DefaultImpls
 
beforeSpec($this, description, spec) - Static method in class io.kotlintest.Spec.DefaultImpls
Deprecated. 
beforeSpec(spec) - Method in class io.kotlintest.specs.AbstractAnnotationSpec
This callback is invoked after the Engine instantiates a interface Spec to be used as part of a class TestCase execution.
beforeSpecClass(spec, tests) - Method in interface io.kotlintest.extensions.TestListener
Called once per interface Spec, when the engine is preparing to execute the tests for that spec.
beforeSpecClass($this, spec, tests) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Called once per interface Spec, when the engine is preparing to execute the tests for that spec.
beforeSpecClass($this, spec, tests) - Static method in class io.kotlintest.Spec.DefaultImpls
 
beforeSpecStarted(description, spec) - Method in interface io.kotlintest.extensions.TestListener
Deprecated. 
beforeSpecStarted($this, description, spec) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Deprecated. 
beforeSpecStarted($this, description, spec) - Static method in class io.kotlintest.Spec.DefaultImpls
Deprecated. 
beforeTest(testCase) - Method in interface io.kotlintest.extensions.TestListener
This callback will be invoked before a class TestCase is executed.
beforeTest(description) - Method in interface io.kotlintest.extensions.TestListener
Deprecated. 
beforeTest($this, testCase) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
This callback will be invoked before a class TestCase is executed.
beforeTest($this, description) - Static method in class io.kotlintest.extensions.TestListener.DefaultImpls
Deprecated. 
beforeTest($this, testCase) - Static method in class io.kotlintest.Spec.DefaultImpls
 
beforeTest($this, description) - Static method in class io.kotlintest.Spec.DefaultImpls
Deprecated. 
beforeTest(testCase) - Method in class io.kotlintest.specs.AbstractAnnotationSpec
This callback will be invoked before a class TestCase is executed.

C

closeResources() - Method in class io.kotlintest.AbstractSpec
 
closeResources() - Method in interface io.kotlintest.Spec
 
combine(other) - Method in class io.kotlintest.Tags
 
Companion - Static variable in class io.kotlintest.Description
 
Companion - Static variable in class io.kotlintest.Tags
 
Companion - Static variable in class io.kotlintest.TestCase
 
Companion - Static variable in class io.kotlintest.TestResult
 
component1() - Method in class io.kotlintest.Description
each parent test case
component1() - Method in class io.kotlintest.extensions.TopLevelTest
 
component1() - Method in class io.kotlintest.extensions.TopLevelTests
 
component1() - Method in class io.kotlintest.SourceRef
 
component1() - Method in class io.kotlintest.Tags
 
component1() - Method in class io.kotlintest.TestCase
 
component1() - Method in class io.kotlintest.TestCaseConfig
 
component1() - Method in class io.kotlintest.TestCaseContext
 
component1() - Method in class io.kotlintest.TestResult
 
component2() - Method in class io.kotlintest.Description
the name of this test case
component2() - Method in class io.kotlintest.extensions.TopLevelTest
 
component2() - Method in class io.kotlintest.SourceRef
 
component2() - Method in class io.kotlintest.Tags
 
component2() - Method in class io.kotlintest.TestCase
 
component2() - Method in class io.kotlintest.TestCaseConfig
 
component2() - Method in class io.kotlintest.TestCaseContext
 
component2() - Method in class io.kotlintest.TestResult
 
component3() - Method in class io.kotlintest.TestCase
 
component3() - Method in class io.kotlintest.TestCaseConfig
 
component3() - Method in class io.kotlintest.TestResult
 
component4() - Method in class io.kotlintest.TestCase
 
component4() - Method in class io.kotlintest.TestCaseConfig
 
component4() - Method in class io.kotlintest.TestResult
 
component5() - Method in class io.kotlintest.TestCase
 
component5() - Method in class io.kotlintest.TestCaseConfig
 
component6() - Method in class io.kotlintest.TestCase
 
component6() - Method in class io.kotlintest.TestCaseConfig
 
component7() - Method in class io.kotlintest.TestCaseConfig
 
config(invocations, enabled, timeout, threads, tags, extensions, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.TestScope
 
config(invocations, enabled, timeout, parallelism, tags, extensions, test, p) - Method in class io.kotlintest.specs.AbstractDescribeSpec.TestBuilder
 
config(invocations, enabled, timeout, parallelism, tags, extensions, test, p) - Method in class io.kotlintest.specs.AbstractExpectSpec.TestBuilder
 
config(invocations, enabled, timeout, threads, tags, extensions, test, p) - Method in class io.kotlintest.specs.AbstractFeatureSpec.ScenarioBuilder
 
config($receiver, invocations, enabled, timeout, threads, tags, extensions, test) - Method in class io.kotlintest.specs.AbstractFreeSpec
 
config($receiver, invocations, enabled, timeout, threads, tags, extensions, test, p) - Method in class io.kotlintest.specs.AbstractFreeSpec.FreeSpecScope
 
config(invocations, enabled, timeout, parallelism, tags, extensions, test, p) - Method in class io.kotlintest.specs.ContextScope.TestBuilder
 
config(invocations, enabled, timeout, parallelism, tags, extensions, test) - Method in class io.kotlintest.specs.AbstractFunSpec.TestBuilder
 
config(invocations, enabled, timeout, threads, tags, extensions, test, p) - Method in class io.kotlintest.specs.ShouldScope.Testbuilder
 
config(invocations, enabled, timeout, threads, tags, extensions, test) - Method in class io.kotlintest.specs.AbstractShouldSpec.Testbuilder
 
config($receiver, invocations, enabled, timeout, threads, tags, extensions, test) - Method in class io.kotlintest.specs.AbstractStringSpec
 
config($receiver, invocations, enabled, timeout, threads, tags, extensions, test, p) - Method in class io.kotlintest.specs.AbstractWordSpec.WordScope
 
ConstructorExtension - Interface in io.kotlintest.extensions
 
constructorExtensions() - Method in class io.kotlintest.Project
 
container(description, spec, test) - Method in class io.kotlintest.TestCase.Companion
 
context(name, test, p) - Method in class io.kotlintest.specs.AbstractDescribeSpec.DescribeScope
 
context(name, test) - Method in class io.kotlintest.specs.AbstractExpectSpec
 
context(name, test, p) - Method in class io.kotlintest.specs.AbstractExpectSpec.ExpectScope
 
context(name, init) - Method in class io.kotlintest.specs.AbstractFunSpec
 
context(name, init, p) - Method in class io.kotlintest.specs.AbstractFunSpec.ContextScope
 
ContextScope($outer) - Constructor for class io.kotlintest.specs.AbstractFunSpec.ContextScope
 
ContextScope.TestBuilder - Class in io.kotlintest.specs
 
copy(parents, name) - Method in class io.kotlintest.Description
The description gives the full path to a class TestCase.
copy(testCase, order) - Method in class io.kotlintest.extensions.TopLevelTest
 
copy(tests) - Method in class io.kotlintest.extensions.TopLevelTests
 
copy(lineNumber, fileName) - Method in class io.kotlintest.SourceRef
 
copy(included, excluded) - Method in class io.kotlintest.Tags
 
copy(description, spec, test, source, type, config) - Method in class io.kotlintest.TestCase
A class TestCase describes an actual block of code that will be tested. It contains a reference back to the interface Spec instance in which it is being executed.
copy(enabled, invocations, timeout, threads, tags, extensions, issue) - Method in class io.kotlintest.TestCaseConfig
 
copy(spec, p) - Method in class io.kotlintest.TestCaseContext
 
copy(status, error, reason, metaData) - Method in class io.kotlintest.TestResult
 
createTestCase(name, test, config, type) - Method in class io.kotlintest.AbstractSpec
 
createTestName(prefix, name) - Static method in class io.kotlintest.specs.TestPrefixesKt
 

D

depth() - Method in class io.kotlintest.Description
 
deregisterExtension(extension) - Method in class io.kotlintest.Project
 
describe(name, test) - Method in class io.kotlintest.specs.AbstractDescribeSpec
 
DescribeScope($outer) - Constructor for class io.kotlintest.specs.AbstractDescribeSpec.DescribeScope
 
Description - Class in io.kotlintest
The description gives the full path to a class TestCase.
Description(parents, name) - Constructor for class io.kotlintest.Description
The description gives the full path to a class TestCase.
description($this) - Static method in class io.kotlintest.Spec.DefaultImpls
 
description() - Method in interface io.kotlintest.Spec
 
description($receiver) - Static method in class io.kotlintest.SpecKt
 
description() - Method in class io.kotlintest.specs.AbstractWordSpec.FinalTestContext
Returns the class Description of the class TestCase that is attached to this class TestContext.
description() - Method in class io.kotlintest.TestContext
Returns the class Description of the class TestCase that is attached to this class TestContext.
Description.Companion - Class in io.kotlintest
 
DiscoveryExtension - Interface in io.kotlintest.extensions
Allows interception of the discovery phase of KotlinTest.
discoveryExtensions() - Method in class io.kotlintest.Project
 
DisplayName - Interface in io.kotlintest
 
displayName($receiver) - Static method in class io.kotlintest.SpecKt
A name slash id for this spec which is used as the parent route for tests. By default this will return the fully qualified class name, unless the spec class is annotated with @DisplayNamen.
DurationsKt - Class in io.kotlintest
 

E

EnabledIfSystemProperty - Interface in org.junit.jupiter.api.condition
 
equals(p) - Method in class io.kotlintest.Description
 
equals(p) - Method in class io.kotlintest.extensions.TopLevelTest
 
equals(p) - Method in class io.kotlintest.extensions.TopLevelTests
 
equals(p) - Method in class io.kotlintest.SourceRef
 
equals(p) - Method in class io.kotlintest.Tags
 
equals(p) - Method in class io.kotlintest.TestCase
 
equals(p) - Method in class io.kotlintest.TestCaseConfig
 
equals(p) - Method in class io.kotlintest.TestCaseContext
 
equals(p) - Method in class io.kotlintest.TestResult
 
error(t) - Method in class io.kotlintest.TestResult.Companion
 
exclude(tags) - Method in class io.kotlintest.Tags.Companion
 
expect(name, test, p) - Method in class io.kotlintest.specs.AbstractExpectSpec.ExpectScope
 
expect(name) - Method in class io.kotlintest.specs.AbstractExpectSpec.ExpectScope
 
expected() - Method in interface io.kotlintest.specs.AbstractAnnotationSpec.Test
 
ExpectScope($outer) - Constructor for class io.kotlintest.specs.AbstractExpectSpec.ExpectScope
 
Extension - Interface in io.kotlintest.extensions
What is an extension? - An extension allows your code to interact with the KotlinTest Engine, changing the behavior of the engine at runtime.
extensions() - Method in class io.kotlintest.AbstractProjectConfig
List of project wide extensions, ie instances of interface ProjectLevelExtension
extensions($this) - Static method in class io.kotlintest.Spec.DefaultImpls
Override this function to register extensions which will be invoked during execution of this spec.
extensions() - Method in interface io.kotlintest.Spec
Override this function to register extensions which will be invoked during execution of this spec.

F

failure(e) - Method in class io.kotlintest.TestResult.Companion
 
FailureFirstSpecExecutionOrder - Class in io.kotlintest
An implementation of interface SpecExecutionOrder which will run specs that contained a failed test on a previous run first, before specs where all the tests passed.
feature(name, init) - Method in class io.kotlintest.specs.AbstractFeatureSpec
 
FeatureScope($outer) - Constructor for class io.kotlintest.specs.AbstractFeatureSpec.FeatureScope
 
filter(description) - Method in class io.kotlintest.IncludeAllTestCaseFilter
 
filter(description) - Method in interface io.kotlintest.TestCaseFilter
 
filters() - Method in class io.kotlintest.AbstractProjectConfig
List of project wide interface TestCaseFilter instances.
FinalTestContext($outer, context) - Constructor for class io.kotlintest.specs.AbstractWordSpec.FinalTestContext
 
findAfterSpecFunctions($receiver) - Static method in class io.kotlintest.specs.AbstractAnnotationSpecKt
 
findAfterTestFunctions($receiver) - Static method in class io.kotlintest.specs.AbstractAnnotationSpecKt
 
findBeforeSpecFunctions($receiver) - Static method in class io.kotlintest.specs.AbstractAnnotationSpecKt
 
findBeforeTestFunctions($receiver) - Static method in class io.kotlintest.specs.AbstractAnnotationSpecKt
 
findTestFunctions($receiver) - Static method in class io.kotlintest.specs.AbstractAnnotationSpecKt
 
focused($this) - Static method in class io.kotlintest.Spec.DefaultImpls
Returns the focused tests for this Spec. Can be empty if no test is marked as focused.
focused() - Method in interface io.kotlintest.Spec
Returns the focused tests for this Spec. Can be empty if no test is marked as focused.
FreeSpecScope($outer) - Constructor for class io.kotlintest.specs.AbstractFreeSpec.FreeSpecScope
 
fullName() - Method in class io.kotlintest.Description
 
FuturesKt - Class in io.kotlintest
 

G

getAcceptingTopLevelRegistration() - Method in class io.kotlintest.AbstractSpec
 
getCase() - Method in class io.kotlintest.TestCaseContext
 
getConfig() - Method in class io.kotlintest.TestCase
 
getContext() - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
getContext() - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
getContext() - Method in class io.kotlintest.specs.AbstractBehaviorSpec.TestScope
 
getContext() - Method in class io.kotlintest.specs.AbstractBehaviorSpec.ThenContext
 
getContext() - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenAndContext
 
getContext() - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenContext
 
getContext() - Method in class io.kotlintest.specs.AbstractDescribeSpec.DescribeScope
 
getContext() - Method in class io.kotlintest.specs.AbstractDescribeSpec.TestBuilder
 
getContext() - Method in class io.kotlintest.specs.AbstractExpectSpec.ExpectScope
 
getContext() - Method in class io.kotlintest.specs.AbstractExpectSpec.TestBuilder
 
getContext() - Method in class io.kotlintest.specs.AbstractFeatureSpec.FeatureScope
 
getContext() - Method in class io.kotlintest.specs.AbstractFeatureSpec.ScenarioBuilder
 
getContext() - Method in class io.kotlintest.specs.AbstractFreeSpec.FreeSpecScope
 
getContext() - Method in class io.kotlintest.specs.AbstractFunSpec.ContextScope
 
getContext() - Method in class io.kotlintest.specs.AbstractShouldSpec.ShouldScope
 
getContext() - Method in class io.kotlintest.specs.AbstractWordSpec.FinalTestContext
 
getContext() - Method in class io.kotlintest.specs.AbstractWordSpec.WhenContext
 
getContext() - Method in class io.kotlintest.specs.AbstractWordSpec.WordScope
 
getCoroutineContext() - Method in class io.kotlintest.TestContext
 
getDays($receiver) - Static method in class io.kotlintest.DurationsKt
 
getDays($receiver) - Static method in class io.kotlintest.DurationsKt
 
getDefaultTestCaseConfig() - Method in class io.kotlintest.AbstractSpec
Config applied to each test case if not overridden per test case.
getDescription() - Method in class io.kotlintest.TestCase
 
getEmpty() - Method in class io.kotlintest.Tags.Companion
 
getEnabled() - Method in class io.kotlintest.TestCaseConfig
 
getError() - Method in class io.kotlintest.TestResult
 
getExcluded() - Method in class io.kotlintest.Tags
 
getExtensions() - Method in class io.kotlintest.TestCaseConfig
 
getFailOnIgnoredTests() - Method in class io.kotlintest.AbstractProjectConfig
Override this value and set it to true if you want the build to be marked as failed if there was one or more tests that were disabled/ignored.
getFailOnIgnoredTests() - Method in class io.kotlintest.Project
 
getFileName() - Method in class io.kotlintest.SourceRef
 
getGlobalAssertSoftly() - Method in class io.kotlintest.AbstractProjectConfig
Override this value and set it to true if you want all tests to behave as if they were operating in an assertSoftly block.
getHours($receiver) - Static method in class io.kotlintest.DurationsKt
 
getHours($receiver) - Static method in class io.kotlintest.DurationsKt
 
getIgnored() - Method in class io.kotlintest.TestResult.Companion
 
getIncluded() - Method in class io.kotlintest.Tags
 
getInvocations() - Method in class io.kotlintest.TestCaseConfig
 
getIssue() - Method in class io.kotlintest.TestCaseConfig
 
getLine() - Method in class io.kotlintest.TestCase
 
getLineNumber() - Method in class io.kotlintest.SourceRef
 
getListenerInstances($receiver) - Static method in class io.kotlintest.SpecKt
 
getMetaData() - Method in class io.kotlintest.TestResult
 
getMilliseconds($receiver) - Static method in class io.kotlintest.DurationsKt
 
getMilliseconds($receiver) - Static method in class io.kotlintest.DurationsKt
 
getMinutes($receiver) - Static method in class io.kotlintest.DurationsKt
 
getMinutes($receiver) - Static method in class io.kotlintest.DurationsKt
 
getName() - Method in class io.kotlintest.Description
the name of this test case
getName() - Method in class io.kotlintest.specs.AbstractBehaviorSpec.TestScope
 
getName() - Method in class io.kotlintest.specs.AbstractDescribeSpec.TestBuilder
 
getName() - Method in class io.kotlintest.specs.AbstractExpectSpec.TestBuilder
 
getName() - Method in class io.kotlintest.specs.AbstractFeatureSpec.ScenarioBuilder
 
getName() - Method in class io.kotlintest.specs.ContextScope.TestBuilder
 
getName() - Method in class io.kotlintest.specs.AbstractFunSpec.TestBuilder
 
getName() - Method in class io.kotlintest.StringTag
Simple name of the singleton/class derived from this class.
getName() - Method in class io.kotlintest.Tag
Simple name of the singleton/class derived from this class.
getName() - Method in class io.kotlintest.TestCase
 
getNanoseconds($receiver) - Static method in class io.kotlintest.DurationsKt
 
getNanoseconds($receiver) - Static method in class io.kotlintest.DurationsKt
 
getOrder() - Method in class io.kotlintest.extensions.TopLevelTest
 
getParents() - Method in class io.kotlintest.Description
each parent test case
getReason() - Method in class io.kotlintest.TestResult
 
getRegister() - Method in class io.kotlintest.specs.ShouldScope.Testbuilder
 
getRegister() - Method in class io.kotlintest.specs.AbstractShouldSpec.Testbuilder
 
getSeconds($receiver) - Static method in class io.kotlintest.DurationsKt
 
getSeconds($receiver) - Static method in class io.kotlintest.DurationsKt
 
getSource() - Method in class io.kotlintest.TestCase
 
getSpec() - Method in class io.kotlintest.TestCase
 
getSpec() - Method in class io.kotlintest.TestCaseContext
 
getStatus() - Method in class io.kotlintest.TestResult
 
getSuccess() - Method in class io.kotlintest.TestResult.Companion
 
getTags() - Method in class io.kotlintest.TestCaseConfig
 
getTest() - Method in class io.kotlintest.TestCase
 
getTestCase() - Method in class io.kotlintest.extensions.TopLevelTest
 
getTests() - Method in class io.kotlintest.extensions.TopLevelTests
 
getThreads() - Method in class io.kotlintest.TestCaseConfig
 
getTimeout() - Method in class io.kotlintest.TestCaseConfig
 
getType() - Method in class io.kotlintest.TestCase
 
getUnlimited($receiver) - Static method in class io.kotlintest.DurationsKt
 
Given(name, test) - Method in class io.kotlintest.specs.AbstractBehaviorSpec
 
given(name, test) - Method in class io.kotlintest.specs.AbstractBehaviorSpec
 
GivenAndContext($outer) - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
GivenContext($outer) - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
globalAssertSoftly() - Method in class io.kotlintest.Project
 

H

hasFocusedTest($this) - Static method in class io.kotlintest.Spec.DefaultImpls
 
hasFocusedTest() - Method in interface io.kotlintest.Spec
 
hashCode() - Method in class io.kotlintest.Description
 
hashCode() - Method in class io.kotlintest.extensions.TopLevelTest
 
hashCode() - Method in class io.kotlintest.extensions.TopLevelTests
 
hashCode() - Method in class io.kotlintest.SourceRef
 
hashCode() - Method in class io.kotlintest.Tags
 
hashCode() - Method in class io.kotlintest.TestCase
 
hashCode() - Method in class io.kotlintest.TestCaseConfig
 
hashCode() - Method in class io.kotlintest.TestCaseContext
 
hashCode() - Method in class io.kotlintest.TestResult
 
hasParent(description) - Method in class io.kotlintest.Description
 

I

id() - Method in class io.kotlintest.Description
Returns a String version of this description, which is the parents + this name concatenated with slashes.
ignored(reason) - Method in class io.kotlintest.TestResult.Companion
 
include(tags) - Method in class io.kotlintest.Tags.Companion
 
IncludeAllTestCaseFilter - Class in io.kotlintest
 
INSTANCE - Static variable in class io.kotlintest.extensions.SystemPropertyTagExtension
 
INSTANCE - Static variable in class io.kotlintest.FailureFirstSpecExecutionOrder
An implementation of interface SpecExecutionOrder which will run specs that contained a failed test on a previous run first, before specs where all the tests passed.
INSTANCE - Static variable in class io.kotlintest.IncludeAllTestCaseFilter
 
INSTANCE - Static variable in class io.kotlintest.LexicographicSpecExecutionOrder
An implementation of interface SpecExecutionOrder which will run specs in a lexicographic order.
INSTANCE - Static variable in class io.kotlintest.Project
Internal class used to hold project wide configuration.
INSTANCE - Static variable in class io.kotlintest.RandomSpecExecutionOrder
An implementation of interface SpecExecutionOrder which will run specs in a different random order each time the are executed.
INSTANCE - Static variable in exception io.kotlintest.specs.Test.None
 
instantiate(clazz) - Method in interface io.kotlintest.extensions.ConstructorExtension
This function is invoked to create an instance of a interface Spec.
intercept(spec, process, p) - Method in interface io.kotlintest.extensions.SpecExtension
Intercepts execution of a interface Spec.
intercept($this, testCase, execute, complete, p) - Static method in class io.kotlintest.extensions.TestCaseExtension.DefaultImpls
Intercepts a class TestCase.
intercept(testCase, execute, complete, p) - Method in interface io.kotlintest.extensions.TestCaseExtension
Intercepts a class TestCase.
invoke($receiver, test, p) - Method in class io.kotlintest.specs.AbstractFreeSpec.FreeSpecScope
 
invoke($receiver, test) - Method in class io.kotlintest.specs.AbstractFreeSpec
 
invoke($receiver, init) - Method in class io.kotlintest.specs.AbstractShouldSpec
 
invoke($receiver, init, p) - Method in class io.kotlintest.specs.AbstractShouldSpec.ShouldScope
 
invoke($receiver, test) - Method in class io.kotlintest.specs.AbstractStringSpec
 
invoke($receiver, test, p) - Method in class io.kotlintest.specs.AbstractWordSpec.WordScope
 
invoke($receiver, test) - Method in class io.kotlintest.TestContext
 
io.kotlintest - package io.kotlintest
 
io.kotlintest.extensions - package io.kotlintest.extensions
 
io.kotlintest.internal - package io.kotlintest.internal
 
io.kotlintest.specs - package io.kotlintest.specs
 
isActive(test) - Static method in class io.kotlintest.internal.ActiveKt
Returns true if the given class TestCase is active.
isActive(tag) - Method in class io.kotlintest.Tags
 
isActive(tags) - Method in class io.kotlintest.Tags
 
isAncestorOf(description) - Method in class io.kotlintest.Description
Returns true if this instance is an ancestor of the supplied argument.
isBang() - Method in class io.kotlintest.TestCase
 
isFocused() - Method in class io.kotlintest.TestCase
 
isIgnoredTest($receiver) - Static method in class io.kotlintest.specs.AbstractAnnotationSpecKt
 
isInstancePerTest() - Method in class io.kotlintest.AbstractSpec
Returns true if this spec should use a new instance for each test case. This is the default behavior in jUnit.
isInstancePerTest() - Method in interface io.kotlintest.Spec
Deprecated. 
IsolationMode - Enum in io.kotlintest
 
IsolationMode() - Constructor for enum io.kotlintest.IsolationMode
 
isolationMode($this) - Static method in class io.kotlintest.Spec.DefaultImpls
 
isolationMode() - Method in interface io.kotlintest.Spec
 
isParentOf(description) - Method in class io.kotlintest.Description
Returns true if this instance is the immediate parent of the supplied argument.
isSpec() - Method in class io.kotlintest.Description
 
isTopLevel() - Method in class io.kotlintest.Description
Returns true if this test is a top level test. In other words, if the test has no parents other than the spec itself.
isTopLevel() - Method in class io.kotlintest.TestCase
 
it(name) - Method in class io.kotlintest.specs.AbstractDescribeSpec.DescribeScope
 
it(name, test, p) - Method in class io.kotlintest.specs.AbstractDescribeSpec.DescribeScope
 

K

KotlinTestDsl - Interface in io.kotlintest.specs
 

L

LexicographicSpecExecutionOrder - Class in io.kotlintest
An implementation of interface SpecExecutionOrder which will run specs in a lexicographic order.
listeners() - Method in class io.kotlintest.AbstractProjectConfig
List of project wide interface TestListener instances.
listeners() - Method in class io.kotlintest.Project
 
listeners($this) - Static method in class io.kotlintest.Spec.DefaultImpls
Override this function to register instances of interface TestListener which will be notified of events during execution of this spec.
listeners() - Method in interface io.kotlintest.Spec
Override this function to register instances of interface TestListener which will be notified of events during execution of this spec.

M

matches() - Method in interface org.junit.jupiter.api.condition.EnabledIfSystemProperty
A regular expression that will be used to match against the retrieved value of the EnabledIfSystemProperty.named JVM system property.
metaData() - Method in class io.kotlintest.TestContext
Returns all the metadata associated with this class TestContext
minus($receiver, test, p) - Method in class io.kotlintest.specs.AbstractFreeSpec.FreeSpecScope
 
minus($receiver, test) - Method in class io.kotlintest.specs.AbstractFreeSpec
 

N

name() - Method in interface io.kotlintest.DisplayName
 
named() - Method in interface org.junit.jupiter.api.condition.EnabledIfSystemProperty
The name of the JVM system property to retrieve.
names() - Method in class io.kotlintest.Description
 

O

org.junit.jupiter.api - package org.junit.jupiter.api
 
org.junit.jupiter.api.condition - package org.junit.jupiter.api.condition
 
org.junit.platform.commons.annotation - package org.junit.platform.commons.annotation
 

P

parallelism() - Method in class io.kotlintest.AbstractProjectConfig
Override this function and return a number greater than 1 if you wish to enable parallel execution of tests. The number returned is the number of concurrently executing specs.
parallelism() - Method in class io.kotlintest.Project
 
parent() - Method in class io.kotlintest.Description
 
Project - Class in io.kotlintest
Internal class used to hold project wide configuration.
ProjectExtension - Interface in io.kotlintest.extensions
Deprecated. 
ProjectExtension.DefaultImpls - Class in io.kotlintest.extensions
Deprecated.
Reusable extension to be registered with AbstractProjectConfig.extensions.
ProjectLevelExtension - Interface in io.kotlintest.extensions
Marker interface for extensions that can be added project wide.
ProjectLevelFilter - Interface in io.kotlintest
 
putMetaData(key, value) - Method in class io.kotlintest.TestContext
Adds a value to this class TestContext meta data.

R

RandomSpecExecutionOrder - Class in io.kotlintest
An implementation of interface SpecExecutionOrder which will run specs in a different random order each time the are executed.
registerExtension(extension) - Method in class io.kotlintest.Project
 
registerExtensions(extensions) - Method in class io.kotlintest.Project
 
registerListeners(listeners) - Method in class io.kotlintest.Project
 
registerTestCase(testCase, p) - Method in class io.kotlintest.specs.AbstractWordSpec.FinalTestContext
Notifies the test runner about a nested class TestCase.
registerTestCase(name, spec, test, config, type, p) - Method in class io.kotlintest.TestContext
Creates a new class TestCase and then notifies the test runner of this nested test.
registerTestCase(testCase, p) - Method in class io.kotlintest.TestContext
Notifies the test runner about a nested class TestCase.
registerTestCaseFilter(filters) - Method in class io.kotlintest.Project
 

S

scenario(name, test, p) - Method in class io.kotlintest.specs.AbstractFeatureSpec.FeatureScope
 
scenario(name) - Method in class io.kotlintest.specs.AbstractFeatureSpec.FeatureScope
 
ScenarioBuilder($outer, name) - Constructor for class io.kotlintest.specs.AbstractFeatureSpec.ScenarioBuilder
 
setAcceptingTopLevelRegistration(p) - Method in class io.kotlintest.AbstractSpec
 
setFailOnIgnoredTests(p) - Method in class io.kotlintest.Project
 
should(name, test) - Method in class io.kotlintest.specs.AbstractShouldSpec
 
should(name) - Method in class io.kotlintest.specs.AbstractShouldSpec
 
should(name, test, p) - Method in class io.kotlintest.specs.AbstractShouldSpec.ShouldScope
 
should(name, p) - Method in class io.kotlintest.specs.AbstractShouldSpec.ShouldScope
 
should($receiver, init) - Method in class io.kotlintest.specs.AbstractWordSpec.FinalTestContext
Deprecated. 
should($receiver, init) - Method in class io.kotlintest.specs.AbstractWordSpec
 
Should($receiver, test, p) - Method in class io.kotlintest.specs.AbstractWordSpec.WhenContext
 
should($receiver, test, p) - Method in class io.kotlintest.specs.AbstractWordSpec.WhenContext
 
should($receiver, init) - Method in class io.kotlintest.specs.AbstractWordSpec.WordScope
Deprecated. 
ShouldScope($outer) - Constructor for class io.kotlintest.specs.AbstractShouldSpec.ShouldScope
 
ShouldScope.Testbuilder - Class in io.kotlintest.specs
 
sort(classes) - Method in class io.kotlintest.FailureFirstSpecExecutionOrder
 
sort(classes) - Method in class io.kotlintest.LexicographicSpecExecutionOrder
 
sort(classes) - Method in class io.kotlintest.RandomSpecExecutionOrder
 
sort(classes) - Method in interface io.kotlintest.SpecExecutionOrder
 
SourceRef - Class in io.kotlintest
 
SourceRef(lineNumber, fileName) - Constructor for class io.kotlintest.SourceRef
 
sourceRef() - Static method in class io.kotlintest.TestCaseKt
 
spec(klass) - Method in class io.kotlintest.Description.Companion
 
spec(name) - Method in class io.kotlintest.Description.Companion
 
spec() - Method in class io.kotlintest.Description
 
Spec - Interface in io.kotlintest
A interface Spec is the top level component in KotlinTest.
Spec.DefaultImpls - Class in io.kotlintest
A interface Spec is the top level component in KotlinTest.
specExecutionOrder() - Method in class io.kotlintest.AbstractProjectConfig
Override this function and return an instance of interface SpecExecutionOrder which will be used to sort specs before execution. By default, will return specs in lexicographic order.
specExecutionOrder() - Method in class io.kotlintest.Project
 
SpecExecutionOrder - Interface in io.kotlintest
 
SpecExtension - Interface in io.kotlintest.extensions
Reusable spec extension to be registered project wide using AbstractProjectConfig.extensions or on a per-spec basis by overriding extensions() in a interface Spec class.
specExtensions() - Method in class io.kotlintest.Project
 
SpecKt - Class in io.kotlintest
 
SpecLevelExtension - Interface in io.kotlintest.extensions
Marker interface for extensions that can be added to specs.
StringTag - Class in io.kotlintest
 
StringTag(name) - Constructor for class io.kotlintest.StringTag
 
SystemPropertyTagExtension - Class in io.kotlintest.extensions
 

T

Tag - Class in io.kotlintest
Base class for all tags. The simple name (without packages) of the singleton derived from this class will be used as name. Two tag object with the same simple name (same object names in different packages) are treated as a single tag.
Tag() - Constructor for class io.kotlintest.Tag
Base class for all tags. The simple name (without packages) of the singleton derived from this class will be used as name. Two tag object with the same simple name (same object names in different packages) are treated as a single tag.
TagExtension - Interface in io.kotlintest.extensions
Returns class Tags to be used by the Test Engine.
tagExtensions() - Method in class io.kotlintest.Project
 
tags() - Method in class io.kotlintest.extensions.SystemPropertyTagExtension
 
tags() - Method in interface io.kotlintest.extensions.TagExtension
 
tags() - Method in class io.kotlintest.Project
 
tags($this) - Static method in class io.kotlintest.Spec.DefaultImpls
Any tags added here will be in applied to all class TestCases defined in this interface Spec in addition to any defined on the individual tests themselves.
tags() - Method in interface io.kotlintest.Spec
Any tags added here will be in applied to all class TestCases defined in this interface Spec in addition to any defined on the individual tests themselves.
Tags - Class in io.kotlintest
 
Tags(included, excluded) - Constructor for class io.kotlintest.Tags
 
Tags.Companion - Class in io.kotlintest
 
tail() - Method in class io.kotlintest.Description
 
test(name) - Method in class io.kotlintest.specs.AbstractFunSpec.ContextScope
 
test(name, test, p) - Method in class io.kotlintest.specs.AbstractFunSpec.ContextScope
 
test(name) - Method in class io.kotlintest.specs.AbstractFunSpec
 
test(name, test) - Method in class io.kotlintest.specs.AbstractFunSpec
 
test(description, spec, test) - Method in class io.kotlintest.TestCase.Companion
 
Test.None - Exception in io.kotlintest.specs
 
Testable - Interface in org.junit.platform.commons.annotation
@Testable is used to signal to IDEs and tooling vendors that the annotated or meta-annotated element is testable. In this context, the term "testable" means that the annotated method or class can be executed by a TestEngine as a test or test container on the JUnit Platform. Motivation for @Testable Some clients of the JUnit Platform, notably IDEs such as IntelliJ IDEA, operate only on sources for test discovery. Thus, they cannot use the full runtime discovery mechanism of the JUnit Platform since it relies on compiled classes. @Testable therefore serves as an alternative mechanism for IDEs to discover tests by analyzing the source code only. Common Use Cases @Testable will typically be used as a meta-annotation in order to create a custom composed annotation that inherits the semantics of @Testable. For example, the @Test and @TestFactory annotations in JUnit Jupiter are meta-annotated with @Testable. For test programming models that do not rely on annotations, test classes or test methods may be directly annotated with @Testable. Alternatively, if concrete test classes extend from a base class, the base class can be annotated with @Testable. Note that @Testable is an Inherited annotation. Requirements for IDEs and Tooling Vendors If a top-level class, static nested class, or inner class is not annotated or meta-annotated with @Testable but contains a method that is annotated or meta-annotated with @Testable, the class must be considered to be a testable class. If annotation hierarchies containing @Testable are present on classes or methods in compiled byte code (e.g., in JARs in the user's classpath), IDEs and tooling vendors must also take such annotation hierarchies into consideration when performing annotation processing for source code. Restrictions for TestEngine Implementations A TestEngine must not in any way perform discovery based on the presence of @Testable. In terms of discovery, the presence of @Testable should only be meaningful to clients such as IDEs and tooling vendors. A TestEngine implementation is therefore required to discover tests based on information specific to that test engine (e.g., annotations specific to that test engine).
TestBuilder($outer, context) - Constructor for class io.kotlintest.specs.AbstractDescribeSpec.TestBuilder
 
TestBuilder($outer, context) - Constructor for class io.kotlintest.specs.AbstractExpectSpec.TestBuilder
 
TestBuilder($outer) - Constructor for class io.kotlintest.specs.ContextScope.TestBuilder
 
TestBuilder($outer) - Constructor for class io.kotlintest.specs.AbstractFunSpec.TestBuilder
 
Testbuilder($outer) - Constructor for class io.kotlintest.specs.ShouldScope.Testbuilder
 
Testbuilder($outer) - Constructor for class io.kotlintest.specs.AbstractShouldSpec.Testbuilder
 
TestCase - Class in io.kotlintest
A class TestCase describes an actual block of code that will be tested. It contains a reference back to the interface Spec instance in which it is being executed.
TestCase(description, spec, test, source, type, config) - Constructor for class io.kotlintest.TestCase
A class TestCase describes an actual block of code that will be tested. It contains a reference back to the interface Spec instance in which it is being executed.
TestCase.Companion - Class in io.kotlintest
 
TestCaseConfig - Class in io.kotlintest
 
TestCaseConfig(enabled, invocations, timeout, threads, tags, extensions, issue) - Constructor for class io.kotlintest.TestCaseConfig
 
TestCaseConfig() - Constructor for class io.kotlintest.TestCaseConfig
 
TestCaseContext - Class in io.kotlintest
 
TestCaseContext(spec, p) - Constructor for class io.kotlintest.TestCaseContext
 
TestCaseExtension - Interface in io.kotlintest.extensions
Reusable extension that intercepts calls to a class TestCase.
TestCaseExtension.DefaultImpls - Class in io.kotlintest.extensions
Reusable extension that intercepts calls to a class TestCase.
testCaseExtensions() - Method in class io.kotlintest.Project
 
TestCaseFilter - Interface in io.kotlintest
 
TestCaseFilter.DefaultImpls - Class in io.kotlintest
 
testCaseFilters() - Method in class io.kotlintest.Project
 
TestCaseKt - Class in io.kotlintest
 
testCaseOrder() - Method in class io.kotlintest.AbstractProjectConfig
Sets the order of top level tests in a spec. The value set here will be used unless overriden in a interface Spec. The value in a interface Spec is always taken in preference to the value here. Nested tests will always be executed in discovery order.
testCaseOrder() - Method in class io.kotlintest.Project
 
testCaseOrder($this) - Static method in class io.kotlintest.Spec.DefaultImpls
Sets the order of top level class TestCases in this spec. If this function returns a null value, then the value set in the class AbstractProjectConfig will be used.
testCaseOrder() - Method in interface io.kotlintest.Spec
Sets the order of top level class TestCases in this spec. If this function returns a null value, then the value set in the class AbstractProjectConfig will be used.
TestCaseOrder - Enum in io.kotlintest
 
TestCaseOrder() - Constructor for enum io.kotlintest.TestCaseOrder
 
testCases() - Method in class io.kotlintest.AbstractSpec
These are the top level class TestCase instances for this Spec.
testCases() - Method in interface io.kotlintest.Spec
These are the top level class TestCase instances for this Spec.
testCases() - Method in class io.kotlintest.specs.AbstractAnnotationSpec
These are the top level class TestCase instances for this Spec.
TestContext - Class in io.kotlintest
A class TestContext is used as the receiver of a closure that is associated with a class TestCase. This allows the scope body to interact with the test engine, for instance, adding metadata during a test, reporting that an error was raised, or notifying the discovery of a nested scope.
TestContext(coroutineContext) - Constructor for class io.kotlintest.TestContext
A class TestContext is used as the receiver of a closure that is associated with a class TestCase. This allows the scope body to interact with the test engine, for instance, adding metadata during a test, reporting that an error was raised, or notifying the discovery of a nested scope.
TestFactory - Interface in org.junit.jupiter.api
 
TestFilterResult - Enum in io.kotlintest
 
TestFilterResult() - Constructor for enum io.kotlintest.TestFilterResult
 
TestListener - Interface in io.kotlintest.extensions
 
TestListener.DefaultImpls - Class in io.kotlintest.extensions
 
TestPrefixesKt - Class in io.kotlintest.specs
 
TestResult - Class in io.kotlintest
 
TestResult(status, error, reason, metaData) - Constructor for class io.kotlintest.TestResult
 
TestResult.Companion - Class in io.kotlintest
 
TestScope($outer, name) - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec.TestScope
 
TestStatus - Enum in io.kotlintest
 
TestStatus() - Constructor for enum io.kotlintest.TestStatus
 
TestType - Enum in io.kotlintest
 
TestType() - Constructor for enum io.kotlintest.TestType
 
Then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
then(name) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
Then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
then(name) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
Then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenAndContext
 
then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenAndContext
 
then(name) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenAndContext
 
Then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenContext
 
then(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenContext
 
then(name) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.WhenContext
 
ThenContext($outer) - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec.ThenContext
 
ThrowableUnwrappingKt - Class in io.kotlintest.internal
 
toExtension($this) - Static method in class io.kotlintest.TestCaseFilter.DefaultImpls
 
toExtension() - Method in interface io.kotlintest.TestCaseFilter
 
TopLevelTest - Class in io.kotlintest.extensions
 
TopLevelTest(testCase, order) - Constructor for class io.kotlintest.extensions.TopLevelTest
 
TopLevelTests - Class in io.kotlintest.extensions
 
TopLevelTests(tests) - Constructor for class io.kotlintest.extensions.TopLevelTests
 
topLevelTests(spec) - Static method in class io.kotlintest.internal.TopLevelTestsKt
Returns the top level class TestCase instances from a Spec, ordered according to the enum TestCaseOrder specified in the spec (or the project if not in the spec). Captures information on focused tests.
TopLevelTestsKt - Class in io.kotlintest.internal
 
toString() - Method in class io.kotlintest.Description
 
toString() - Method in class io.kotlintest.extensions.TopLevelTest
 
toString() - Method in class io.kotlintest.extensions.TopLevelTests
 
toString() - Method in class io.kotlintest.SourceRef
 
toString() - Method in class io.kotlintest.Tag
Same as Tag.getName.
toString() - Method in class io.kotlintest.Tags
 
toString() - Method in class io.kotlintest.TestCase
 
toString() - Method in class io.kotlintest.TestCaseConfig
 
toString() - Method in class io.kotlintest.TestCaseContext
 
toString() - Method in class io.kotlintest.TestResult
 

U

unwrapIfReflectionCall($receiver) - Static method in class io.kotlintest.internal.ThrowableUnwrappingKt
In some particular cases, such as AnnotationSpec, a call will be made using Reflection. When using reflection, any error will be wrapped around a InvocationTargetException, as explained in https://stackoverflow.com/questions/6020719/what-could-cause-java-lang-reflect-invocationtargetexception By verifying if this is an InvocationTargetException, we can unwrap it and throw the cause instead

W

When(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
when(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenAndContext
 
When(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
when(name, test, p) - Method in class io.kotlintest.specs.AbstractBehaviorSpec.GivenContext
 
When($receiver, init) - Method in class io.kotlintest.specs.AbstractWordSpec
 
when($receiver, init) - Method in class io.kotlintest.specs.AbstractWordSpec
 
WhenAndContext($outer) - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec.WhenAndContext
 
WhenContext($outer) - Constructor for class io.kotlintest.specs.AbstractBehaviorSpec.WhenContext
 
WhenContext($outer) - Constructor for class io.kotlintest.specs.AbstractWordSpec.WhenContext
 
whenReady(f, test) - Static method in class io.kotlintest.FuturesKt
Allows callers to queue up futures with a callback that will be executed when the future has completed.
WordScope($outer) - Constructor for class io.kotlintest.specs.AbstractWordSpec.WordScope
 
writeSpecFailureFile() - Method in class io.kotlintest.AbstractProjectConfig
When set to true, failed specs are written to a file called spec_failures. This file is used on subsequent test runs to run the failed specs first.
writeSpecFailureFile() - Method in class io.kotlintest.Project
 
A B C D E F G H I K L M N O P R S T U W 
Skip navigation links