Constructor
new jsApiReporter()
Note: Do not construct this directly, use the global jsApiReporter
to retrieve the instantiated object.
Methods
executionTime() → {Number}
Get the number of milliseconds it took for the full Jasmine suite to run.
Returns:
- Type
- Number
specResults(index, length) → {Array.<Object>}
Get the results for a set of specs.
Retrievable in slices for easier serialization.
Parameters:
Name | Type | Description |
---|---|---|
index |
Number | The position in the specs list to start from. |
length |
Number | Maximum number of specs results to return. |
Returns:
- Type
- Array.<Object>
specs() → {Array.<Object>}
Get all spec results.
Returns:
- Type
- Array.<Object>
status() → {String}
Get the current status for the Jasmine environment.
Returns:
- One of
loaded
,started
, ordone
- Type
- String
suiteResults(index, length) → {Array.<Object>}
Get the results for a set of suites.
Retrievable in slices for easier serialization.
Parameters:
Name | Type | Description |
---|---|---|
index |
Number | The position in the suites list to start from. |
length |
Number | Maximum number of suite results to return. |
Returns:
- Type
- Array.<Object>
suites() → {Object}
Get all of the suites in a single object, with their id
as the key.
Returns:
- Type
- Object