TestSuite

A test suite containing child TestElements (tests and/or suites). A suite may not contain test logic.

Inheritors

Types

Link copied to clipboard
class Fixture<Value : Any>

A fixture is a state holder for a lazily initialized Value with a lifetime of the test suite registering it.

Properties

Link copied to clipboard
open override val testElementIsEnabled: Boolean
Link copied to clipboard
val testSuiteScope: CoroutineScope

The test suite's CoroutineScope, valid only during the suite's execution.

Functions

Link copied to clipboard
fun aroundAll(executionWrappingAction: TestSuiteExecutionWrappingAction)

Registers an executionWrappingAction which wraps the execution actions of this test suite.

Link copied to clipboard
fun test(name: String, displayName: String = name, testConfig: TestConfig = TestConfig, action: suspend TestExecutionScope.() -> Unit)

Registers a Test as a child of this test suite.

Link copied to clipboard
fun <Value : Any> testFixture(value: suspend TestSuite.() -> Value): TestSuite.Fixture<Value>

Registers a fixture, a state holder for a lazily initialized Value with a lifetime of this test suite.

Link copied to clipboard
fun testSuite(name: String, displayName: String = name, testConfig: TestConfig = TestConfig, content: TestSuite.() -> Unit)

Registers a TestSuite as a child of this test suite.

Link copied to clipboard
fun <Rule : TestRule> TestSuite.testWithJUnit4Rule(name: String, rule: Rule, action: suspend (Rule) -> Unit)

Registers a Test wrapped by a JUnit 4 TestRule.