TestSuiteScope

A TestSuite-based registration scope for tests, test suites and fixtures.

The most direct TestSuiteScope is the TestSuite itself. In addition, there are scopes for fixtures and custom scopes. These are not test suites in their own right, but delegate to one.

Inheritors

Properties

Link copied to clipboard

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
open fun TestSuiteScope.test(name: String, displayName: String = name, testConfig: TestConfig = TestConfig, action: suspend Test.ExecutionScope.() -> Unit)

Registers a Test as a child of the testSuiteInScope.

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

Registers a fixture, a state holder for a lazily initialized Value to be used in tests.

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

Registers a TestSuite as a child of the testSuiteInScope.