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
fetch(amount) → {ReadStream}
Fetch the specified
amount of elements. If the ReadStream has been paused, reading will
recommence with the specified amount of items, otherwise the specified amount will
be added to the current stream demand.
Parameters:
| Name | Type | Description |
|---|---|---|
amount |
number |
Returns:
a reference to this, so the API can be used fluently
- Type
- ReadStream
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
pipe() → {Pipe}
Pause this stream and return a to transfer the elements of this stream to a destination .
The stream will be resumed when the pipe will be wired to a
WriteStream.
Returns:
a pipe
- Type
- Pipe
pipeTo(dst, handler)
Pipe this
ReadStream to the WriteStream.
Elements emitted by this stream will be written to the write stream until this stream ends or fails.
Once this stream has ended or failed, the write stream will be ended and the handler will be
called with the result.
Parameters:
| Name | Type | Description |
|---|---|---|
dst |
WriteStream | the destination write stream |
handler |
function |
resume() → {TestSuiteReport}
Returns:
- Type
- TestSuiteReport