SuiteContext
[<Interface>]
type SuiteContext =
abstract member filePath: string option
abstract member name: string
abstract member signal: AbortSignal
static member Create (name: string, signal: AbortSignal, ?filePath: string) : SuiteContext| Assembly | Xantham.Fable.Node |
| Attributes | [<Interface>] |
An instance of SuiteContext is passed to each suite function in order to interact with the test runner. However, the SuiteContext constructor is not exposed as part of the API.
@since v18.7.0, v16.17.0
Properties
abstract member filePath: string option
abstract member filePath: string optionThe absolute path of the test file that created the current suite. If a test file imports additional modules that generate suites, the imported suites will return the path of the root test file.
@since v22.6.0
abstract member signal: AbortSignal
abstract member signal: AbortSignalCan be used to abort test subtasks when the test has been aborted.
@since v18.7.0, v16.17.0
Methods
static member Create (name: string, signal: AbortSignal, ?filePath: string) : SuiteContext