Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IRunner

deprecated

use Mocha.Runner instead.

Hierarchy

Index

Properties

Optional asyncOnly

asyncOnly: undefined | false | true

failures

failures: number

Optional forbidOnly

forbidOnly: undefined | false | true

Optional forbidPending

forbidPending: undefined | false | true

Optional fullStackTrace

fullStackTrace: undefined | false | true

Optional ignoreLeaks

ignoreLeaks: undefined | false | true

started

started: boolean

Optional stats

stats: IStats

suite

suite: ISuite
deprecated

.suite has type Mocha.Suite in Mocha.Runner.

total

total: number

Methods

abort

  • abort(): this
  • Returns this

globals

  • globals(arr: ReadonlyArray<string>): this | string[]
  • deprecated

    .globals() has different overloads in Mocha.Runner.

    Parameters

    • arr: ReadonlyArray<string>

    Returns this | string[]

grep

  • grep(re: RegExp, invert: boolean): this
  • Parameters

    • re: RegExp
    • invert: boolean

    Returns this

grepTotal

  • grepTotal(suite: ISuite): number
  • deprecated

    Parameter suite has type Mocha.Suite in Mocha.Runner.

    Parameters

    Returns number

run

  • run(fn?: undefined | function): this
  • Parameters

    • Optional fn: undefined | function

    Returns this

Generated using TypeDoc