The Jasmine environment
Note: Do not construct this directly, Jasmine will make one during booting.
Add a custom reporter to the Jasmine environment.
Name | Type | Description |
---|---|---|
reporterToAdd | Reporter | The reporter to be added. |
Clear all registered reporters
Provide a fallback reporter if no other reporters have been specified.
Name | Type | Description |
---|---|---|
reporterToAdd | Reporter | The reporter |
Set whether to randomize test execution order
Name | Type | Description |
---|---|---|
value | Boolean | Whether to randomize execution order |
Set the random number seed for spec randomization
Name | Type | Description |
---|---|---|
value | Number | The seed value |
Set whether to stop suite execution when a spec fails
Name | Type | Description |
---|---|---|
value | Boolean | Whether to stop suite execution when a spec fails |
Sets whether Jasmine should throw an Error when an expectation fails. This causes a spec to only have one expectation failure.
Name | Type | Description |
---|---|---|
value | Boolean | Whether to throw when a expectation fails |
© 2008–2017 Pivotal Labs
Licensed under the MIT License.
https://jasmine.github.io/api/3.2/Env.html