RSX Code Reference
    Preparing search index...
    • rsx
    • TestOutput

    Interface TestOutput

    Interface for receiving test output and results.

    interface TestOutput {
        onTestEnd(name: string, success: boolean): void;
        onTestFailure(name: string, description: string, stack: string): void;
        onTestPass(name: string, description: string, stack: string): void;
        onTestStart(name: string): void;
        onTestSuiteEnd(name: string): void;
        onTestSuiteStart(name: string): void;
    }

    Implemented by

    Index
    • Called when an individual test ends.

      Parameters

      • name: string

        The name of the test.

      • success: boolean

        True if the test passed, false otherwise.

      Returns void

    • Called when a test assertion fails.

      Parameters

      • name: string

        The name of the test.

      • description: string

        Description of the failed assertion.

      • stack: string

        The full stack trace from the assertion site.

      Returns void

    • Called when a test assertion passes.

      Parameters

      • name: string

        The name of the test.

      • description: string

        Description of the passed assertion.

      • stack: string

        The full stack trace from the assertion site.

      Returns void

    • Called when an individual test starts.

      Parameters

      • name: string

        The name of the test.

      Returns void

    • Called when a test suite finishes running.

      Parameters

      • name: string

        The name of the test suite.

      Returns void

    • Called when a test suite starts running.

      Parameters

      • name: string

        The name of the test suite.

      Returns void