API Docs for: 0.9.1
Show:

ReportContainer Class

Extends Base
Defined in: lib/container.js:8

This class manages the messages received and is used as data-source for the reporter instances.

Methods

_completeTestAction

(
  • id
  • [options]
)
Object private

Completes a test

Parameters:

  • id String
  • [options] Object optional
    • [endTime] Int optional

Returns:

Object:

Action

_countOutcomes

(
  • treeNode
  • sumObj
)
private

Counts a specific outcome downwards from the current tree-point

Parameters:

complete

()

Defined in lib/container.js:63

Reporting is completed

gatherTestOutcomes

(
  • treeNode
)
Object

Gathers all test outcomes for a node

Parameters:

Returns:

Object:

Of {tests: int, failed: int, disabled: int, error: int}

getAction

(
  • id
)
Object

Gets action by id

Parameters:

Returns:

getFullName

(
  • id
)
String

Gets the full name of an object

Parameters:

Returns:

getSequence

() String[]

Gets the sequence of actions by the sequential list of ids

Returns:

getTree

() Object

Gets the action tree

Returns:

itemData

(
  • id
  • json
)

Called when any item has custom data

Parameters:

itemMessage

(
  • id
  • message
)

Called when any item has a custom message

Parameters:

start

()

Defined in lib/container.js:21

Called when reporting starts

stop

()

Defined in lib/container.js:42

Called when reporting stops

suiteEnd

(
  • id
  • [options]
)

Called when suite ends

Parameters:

  • id String
  • [options] Object optional
    • [endTime] Int optional

suiteStart

(
  • id
  • parentId
  • suiteName
  • [options]
)

Defined in lib/container.js:72

Called when suite starts

Parameters:

testError

(
  • id
  • [message]
  • [reason]
  • [options]
)

Called when test has an error

Parameters:

testFailed

(
  • id
  • [message]
  • [reason]
  • [options]
)

Called when test fails

Parameters:

testIncomplete

(
  • id
  • [options]
)

Called when test is incomplete

Parameters:

testPassed

(
  • id
  • [options]
)

Called when test has passed

Parameters:

testSkipped

(
  • id
  • [reason]
  • [options]
)

Called when test is skipped

Parameters:

testStart

(
  • id
  • parentId
  • testName
  • [options]
)

Called when test starts

Parameters:

testUndefined

(
  • id
  • [options]
)

Called when test is undefined

Parameters:

Properties

TYPE

String static