Represents a context in which a test is executed, it's used by TestExecutor.

no subtypes hierarchy

rootshared root(TestRunner runner, TestRunResult result, TestExtensionResolver extensionResolver, Boolean async = false)

Constructor for root context.

  • async = false
descriptionshared TestDescription description

The current test description.

parentshared TestExecutionContext? parent

The parent context.

resultshared TestRunResult result

The summary result of the test run.

runnershared TestRunner runner

The current test runner.

Inherited Attributes
Attributes inherited from: Object
hash, string
childContextshared TestExecutionContext childContext(TestDescription description)

Create child context for given test.

executeshared void execute(Anything()|{Anything()*}* tasks)

Schedule test tasks for execution.

extensionshared TestExtensionType extension<TestExtensionType>()
given TestExtensionType satisfies TestExtension

Returns last registered instance of test extension with given type.

extensionsshared TestExtensionType[] extensions<TestExtensionType>()
given TestExtensionType satisfies TestExtension

Returns all registered instances of test extensions with given type.

fireshared TestListener fire()

Returns implementation of test listener, which is firing registered listeners.

registerExtensionshared void registerExtension(TestExtension* extensions)

Register given test extension.

Inherited Methods
Methods inherited from: Object