@nevware21/tripwire - v0.1.8
    Preparing search index...

    Interface ITestRunContext

    Context defining which test suites and/or test cases to run

    0.2.0

    interface ITestRunContext {
        cfg: IConfigHost;
        context: ITestContext;
        end?: number;
        filters?: ITestFilter[];
        hookErrors?: Error[];
        hookFailures?: IHookFailure[];
        metrics?: IRunnerMetrics;
        root: ITestSuite;
        start: number;
        suiteResult(suite: ITestSuite): ISuiteResult;
        testResult(test: ITestCase): ITestResult;
    }
    Index

    Configuration host providing access to global configuration and utilities Will be set before the test run starts

    context: ITestContext

    The context used as the 'this' value when executing test functions Can be used to share state or utilities across tests Will be set before the test run starts

    end?: number

    The end time of the test run (milliseconds since epoch) Will be set when the test run completes

    filters?: ITestFilter[]

    Optional filters to control which suites and/or tests should be run Filters are applied in the order they are added, and all filters must allow a suite/test for it to be run Filters can be added/removed dynamically during the test run

    hookErrors?: Error[]

    The raw errors behind hookFailures, kept (unserialized, by reference) so that a rejection propagating out of the run can be recognised as one already recorded above -- see the runner's own _isRecordedHookError.

    hookFailures?: IHookFailure[]

    Every lifecycle hook that failed or timed out so far during the current run, in failure order -- reset at the start of each run() and surfaced on the run summary.

    metrics?: IRunnerMetrics

    Runner execution metrics for the current run

    Root suite to run (including all child suites and tests) Will be set before the test run starts

    start: number

    The start time of the test run (milliseconds since epoch) Will be set when the test run starts