interface
test.TestContext
interface TestContext
The object passed to test.for() callbacks and to the callbacks of a test made by test.extend(). Each test gets one object, and its hooks receive the same one.
- message: string,type?: string,attachment?: object
Adds an annotation to
task.annotations. - options?: HookOptions): void;
Like
onTestFinished(), but only runs if the test failed. - options?: HookOptions): void;
Runs
fnafter the test, itsafterEachhooks and its fixture teardown. The last one registered runs first.