KC's Workspace
    Preparing search index...
    Index

    Constructors

    • Parameters

      Returns TestCollection

    Accessors

    • get size(): number

      The number of tests and suites in the collection.

      Returns number

    Methods

    • Returns Generator<TestCase | TestSuite, undefined, void>

    • Filters all suites that are part of this collection and its children.

      Returns Generator<TestSuite, undefined, void>

    • Filters all tests that are part of this collection and its children.

      Parameters

      • Optionalstate: "skipped" | "pending" | "failed" | "passed"

      Returns Generator<TestCase, undefined, void>

    • Returns the collection in array form for easier manipulation.

      Returns (TestCase | TestSuite)[]

    • Returns the test or suite at a specific index.

      Parameters

      • index: number

      Returns TestCase | TestSuite | undefined

    • Filters only the suites that are part of this collection.

      Returns Generator<TestSuite, undefined, void>

    • Filters only the tests that are part of this collection.

      Parameters

      • Optionalstate: "skipped" | "pending" | "failed" | "passed"

      Returns Generator<TestCase, undefined, void>