ReportContainer Class
This class manages the messages received and is used as data-source for the reporter instances.
Methods
_countOutcomes
(
private
-
treeNode
-
sumObj
Counts a specific outcome downwards from the current tree-point
complete
()
Reporting is completed
gatherTestOutcomes
(
Object
-
treeNode
Gathers all test outcomes for a node
Parameters:
-
treeNode
Object
Returns:
Object:
Of {tests: int, failed: int, disabled: int, error: int}
itemData
(
-
id
-
json
Called when any item has custom data
itemMessage
(
-
id
-
message
Called when any item has a custom message
start
()
Called when reporting starts
stop
()
Called when reporting stops
suiteEnd
(
-
id
-
[options]
Called when suite ends
suiteStart
(
-
id
-
parentId
-
suiteName
-
[options]
Called when suite starts
testError
(
-
id
-
[message]
-
[reason]
-
[options]
Called when test has an error
testFailed
(
-
id
-
[message]
-
[reason]
-
[options]
Called when test fails
testIncomplete
(
-
id
-
[options]
Called when test is incomplete
testPassed
(
-
id
-
[options]
Called when test has passed
testSkipped
(
-
id
-
[reason]
-
[options]
Called when test is skipped
testStart
(
-
id
-
parentId
-
testName
-
[options]
Called when test starts