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

    Interface ITestRunner

    Test runner interface for executing test suites

    0.2.0

    interface ITestRunner {
        addFilter(filter: ITestFilter): IRemovable;
        addListener(listener: IListener): void;
        addReporter(reporter: IListener): void;
        getMetrics(): IRunnerMetrics;
        getResults(): ITestSummary;
        getRootSuite(): ITestSuite;
        getSuiteResult(suite: ITestSuite): ISuiteResult;
        getTestResult(test: ITestCase): ITestResult;
        removeListener(listener: IListener): void;
        removeReporter(reporter: IListener): void;
        run(): IPromise<void>;
    }
    Index
    • Add a reporter to receive test execution notifications (legacy alias for addListener)

      Parameters

      Returns void

      Use addListener instead

    • Get execution monitoring metrics for the current/last run.

      The full metrics (execution trace, per-execution samples, per-test wait ratios, timeout hotspots and retry diagnostics) are only collected when the runner was created with the metrics option enabled (see ITestRunnerOptions.metrics). When it was not, the returned object still carries the basic counters and timing totals, the collection based values are empty and message explains that the full metrics were not captured.

      Returns IRunnerMetrics