Interface TestRunner

Hierarchy

Index

Properties

Methods

Properties

public BEGIN_EVENT: string

public COMPLETE_EVENT: string

public ERROR_EVENT: string

public TEST_CASE_BEGIN_EVENT: string

public TEST_CASE_COMPLETE_EVENT: string

public TEST_FAIL_EVENT: string

public TEST_IGNORE_EVENT: string

public TEST_PASS_EVENT: string

public TEST_SUITE_BEGIN_EVENT: string

public TEST_SUITE_COMPLETE_EVENT: string

Methods

public add(testObject: TestSuite)

Parameters

public add(testObject: TestCase)

Parameters

public attach(type: string, listener: Function)

Parameters

  • type: string
  • listener: Function

public callback(args?: Array<any>): Function

Parameters

  • args?: Array<any> optional

Returns

Function

public clear()

public detach(type: string, listener: Function)

Parameters

  • type: string
  • listener: Function

public fire(event: Object)

Parameters

  • event: Object

public fire(event: string)

Parameters

  • event: string

public getCoverage(format?: Function): any

Parameters

  • format?: Function optional

Returns

any

public getName(): string

Returns

string

public getResults(format?: Function): any

Parameters

  • format?: Function optional

Returns

any

public isRunning(): boolean

Returns

boolean

public isWaiting(): boolean

Returns

boolean

public resume(segment?: Function)

Parameters

  • segment?: Function optional

public run(options?: Object)

Parameters

  • options?: Object optional

public run(options?: boolean)

Parameters

  • options?: boolean optional

public setName(name: string)

Parameters

  • name: string

public subscribe(type: string, listener: Function)

Parameters

  • type: string
  • listener: Function

public unsubscribe(type: string, listener: Function)

Parameters

  • type: string
  • listener: Function