new TestSuiteReport()
The test suite reports is basically a stream of events reporting the test suite execution.
Methods
endHandler(endHandler) → {TestSuiteReport}
Parameters:
Name | Type | Description |
---|---|---|
endHandler |
function |
Returns:
- Type
- TestSuiteReport
exceptionHandler(handler) → {TestSuiteReport}
Set an exception handler, the exception handler reports the test suite errors, it can be called mulitple
times before the test ends.
Parameters:
Name | Type | Description |
---|---|---|
handler |
function | the exception handler |
Returns:
a reference to this, so the API can be used fluently
- Type
- TestSuiteReport
handler(handler) → {TestSuiteReport}
Parameters:
Name | Type | Description |
---|---|---|
handler |
function |
Returns:
- Type
- TestSuiteReport
name() → {string}
Returns:
-
the test suite name
-
- Type
- string
pause() → {TestSuiteReport}
Returns:
- Type
- TestSuiteReport
resume() → {TestSuiteReport}
Returns:
- Type
- TestSuiteReport