import {MochaConfig} from '@serenity-js/mocha/lib/adapter'
public interface | source

MochaConfig

Configuration object for the Mocha test runner.

Member Summary

Public Members
public

config: string | undefined

Path to config file.

public

undefined: boolean | undefined

Allow uncaught errors to propagate.

public

bail: boolean | undefined

Abort ("bail") after first test failure.

public

delay: boolean | undefined

Delay initial execution of root suite.

public

fgrep: string | undefined

Only run tests containing this string.

public

file: string[] | undefined

File(s) to be loaded prior to root suite execution.

public

global: string[] | undefined

List of allowed global variables.

public

grep: string | RegExp | undefined

Only run tests matching this string or regexp.

public

growl: boolean | undefined

Enable Growl notifications.

public

invert: boolean | undefined

Inverts MochaConfig.grep and MochaConfig.fgrep matches.

public

require: string[] | undefined

Require module.

public

retries: number | undefined

Retry failed tests this many times.

public

slow: number

Specify "slow" test threshold (in milliseconds).

public

timeout: number

Specify test timeout threshold (in milliseconds).

public

ui: string

Specify user interface.

Public Members

public config: string | undefined source

Path to config file.

public : boolean | undefined source

Allow uncaught errors to propagate.

public bail: boolean | undefined source

Abort ("bail") after first test failure.

public delay: boolean | undefined source

Delay initial execution of root suite.

public fgrep: string | undefined source

Only run tests containing this string. Please note: MochaConfig.fgrep and MochaConfig.grep are mutually exclusive.

public file: string[] | undefined source

File(s) to be loaded prior to root suite execution.

public global: string[] | undefined source

List of allowed global variables.

public grep: string | RegExp | undefined source

Only run tests matching this string or regexp. Please note: MochaConfig.fgrep and MochaConfig.grep are mutually exclusive.

public growl: boolean | undefined source

Enable Growl notifications.

public invert: boolean | undefined source

Inverts MochaConfig.grep and MochaConfig.fgrep matches.

public require: string[] | undefined source

Require module.

public retries: number | undefined source

Retry failed tests this many times.

public slow: number source

Specify "slow" test threshold (in milliseconds).

public timeout: number source

Specify test timeout threshold (in milliseconds). Please note: setting this property to 0 means "no timeout".

public ui: string source

Specify user interface.