Skip to content

TestOptions

[<Interface>]
type TestOptions =
    abstract member concurrency: U2<float,bool> option with get, set
    abstract member only: bool option with get, set
    abstract member plan: float option with get, set
    abstract member signal: AbortSignal option with get, set
    abstract member skip: U2<string,bool> option with get, set
    abstract member timeout: float option with get, set
    abstract member todo: U2<string,bool> option with get, set
    static member Create (?concurrency: U2<float,bool>, ?only: bool, ?signal: AbortSignal, ?skip: U2<string,bool>, ?timeout: float, ?todo: U2<string,bool>, ?plan: float) : TestOptions
AssemblyXantham.Fable.Node
Attributes[<Interface>]

Properties

abstract member concurrency: U2<float,bool> option with get, set

If a number is provided, then that many tests would run in parallel. If truthy, it would run (number of cpu cores - 1) tests in parallel. For subtests, it will be Infinity tests in parallel. If falsy, it would only run one test at a time. If unspecified, subtests inherit this value from their parent.

abstract member only: bool option with get, set

If truthy, and the test context is configured to run only tests, then this test will be run. Otherwise, the test is skipped.

abstract member plan: float option with get, set

The number of assertions and subtests expected to be run in the test. If the number of assertions run in the test does not match the number specified in the plan, the test will fail.

@since v22.2.0

abstract member signal: AbortSignal option with get, set

Allows aborting an in-progress test.

@since v18.8.0

abstract member timeout: float option with get, set

A number of milliseconds the test will fail after. If unspecified, subtests inherit this value from their parent.

@since v18.7.0

abstract member todo: U2<string,bool> option with get, set

If truthy, the test marked as TODO. If a string is provided, that string is displayed in the test results as the reason why the test is TODO.

Methods

static member Create (?concurrency: U2<float,bool>, ?only: bool, ?signal: AbortSignal, ?skip: U2<string,bool>, ?timeout: float, ?todo: U2<string,bool>, ?plan: float) : TestOptions