addFailedResult (name, description)
Adds a failed result to the current job section.
Parameters:
Name |
Type |
Description |
name |
string
|
|
description |
string
|
|
|
addResult (result)
Adds a result to the current job section.
Parameters:
|
Parameters:
Name |
Type |
Attributes |
Description |
name |
string
|
<optional>
|
|
Returns:
|
addSkippedResult (name, description)
Adds a skipped result to the current job section.
Parameters:
Name |
Type |
Description |
name |
string
|
|
description |
string
|
|
|
Gets current job section. Create new section if none exists.
Returns:
|
|
getStatistics () → {Object}
Counts number of tests, number of failed/skipped tests, job duration.
Returns:
-
Object
:
{total: int, failed: int, skipped: int, duration: milliseconds}
|
onResult (result, actual, expected, depth)
Adds the result to the current job section, shows error if needed. Assert library methods calls it after evaluating a test.
Parameters:
|
passed () → {boolean}
Returns true if job passed.
Returns:
|
sectionList () → {Array}
Gets list of all sections.
Returns:
|
setName (name)
Parameters:
Name |
Type |
Description |
name |
string
|
|
|
toString () → {string}
Returns a string representation of the object.
Returns:
|