Class: jsApiReporter
jsApiReporter
Reporter
added by default in boot.js
to record results for retrieval in javascript code. An instance is made available as jsApiReporter
on the global object.
Methods
executionTime() → {Number}
Get the number of milliseconds it took for the full Jasmine suite to run.
- Since:
- 2.0.0
Returns:
- Type
- Number
specResults(index, length) → {Array.<SpecResult>}
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. |
- Since:
- 2.0.0
Returns:
- Type
- Array.<SpecResult>
specs() → {Array.<SpecResult>}
Get all spec results.
- Since:
- 2.0.0
Returns:
- Type
- Array.<SpecResult>
status() → {String}
Get the current status for the Jasmine environment.
- Since:
- 2.0.0
Returns:
- One of
loaded
,started
, ordone
- Type
- String
suiteResults(index, length) → {Array.<SuiteResult>}
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. |
- Since:
- 2.1.0
Returns:
- Type
- Array.<SuiteResult>
suites() → {Object}
Get all of the suites in a single object, with their id
as the key.
- Since:
- 2.0.0
Returns:
- Map of suite id to
SuiteResult
- Type
- Object
© 2008–2019 Pivotal Labs
Licensed under the MIT License.
https://jasmine.github.io/api/3.7/jsApiReporter.html