Scope

A scope inside which tests receive a fixture-provided value.

The fixture-provided value normally lives inside the scopingAction's fixtureScopedAction. For test-level fixtures, envelopeValue provides this value early for examination before the test is executed. For details and motivation, see TestEnvelopeContext.

Properties

Link copied to clipboard
open override val testSuiteInScope: TestSuite

The closest test suite in scope. Use this to refer to the test suite when creating custom tests or test suites.

Functions

Link copied to clipboard
@JvmName(name = "testFixtureScoped")
fun test(name: String, displayName: String = name, testConfig: TestConfig = TestConfig, fixtureScopedAction: FixtureScopedAction)

Registers a Test as a child of the scope's test suite.

Link copied to clipboard
@JvmName(name = "testSuiteFixtureScoped")
fun testSuite(name: String, displayName: String = name, testConfig: TestConfig = TestConfig, content: TestFixture.Scope<FixtureScopedAction>.() -> Unit)

Registers a TestSuite as a child of the scope's test suite.