docs » cp.spec.Handler
Subclasses of this can customise how reports are handled. All methods do nothing.
See DefaultHandler.
- Functions - API calls offered directly by the extension
- default
- Constructors - API calls which return an object, typically one that offers API methods
- Handler
- Methods - API calls which can only be made on an object returned by a constructor
- aborted
- checkVerbose
- failed
- filter
- passed
- start
- stop
- summary
- verbose
- waiting
| Signature | cp.spec.Handler.default([handler]) -> cp.spec.Handler |
|---|---|
| Type | Function |
| Description | Gets and sets the current default Handler implementation. |
| Parameters |
|
| Returns |
|
| Signature | cp.spec.Handler() -> cp.spec.Handler |
|---|---|
| Type | Constructor |
| Description | Creates a new Handler |
| Signature | cp.spec.Handler:aborted(run) |
|---|---|
| Type | Method |
| Description | Call to indicate the run has had an abort. |
| Parameters |
|
| Signature | cp.spec.Handler:checkVerbose(run) -> boolean |
|---|---|
| Type | Method |
| Description | Indicates if either the handler or the individual Run is |
| Signature | cp.spec.Handler:failed(run) |
|---|---|
| Type | Method |
| Description | Call to indicate the run has failed. |
| Parameters |
|
| Signature | cp.spec.Handler:filter(run, msg) |
|---|---|
| Type | Method |
| Description | Call to indicate the run is running due to being filtered. |
| Parameters |
|
| Signature | cp.spec.Handler:passed(run) |
|---|---|
| Type | Method |
| Description | Call to indicate the run has passed. |
| Parameters |
|
| Signature | cp.spec.Handler:start(run) |
|---|---|
| Type | Method |
| Description | Call to indicate the run has started. |
| Parameters |
|
| Signature | cp.spec.Handler:stop(run) |
|---|---|
| Type | Method |
| Description | Call to indicate the run has completed. |
| Parameters |
|
| Signature | cp.spec.Handler:summary(run, report) |
|---|---|
| Type | Method |
| Description | Call to indicate the run has passed with the given report. |
| Parameters |
|
| Signature | cp.spec.Handler:verbose([isVerbose]) -> self |
|---|---|
| Type | Method |
| Description | Indicate that the handler is (or is not) verbose. |
| Parameters |
|
| Returns |
|
| Signature | cp.spec.Handler:waiting(run, timeout) |
|---|---|
| Type | Method |
| Description | Call to indicate that the run is waiting asynchronously. |
| Parameters |
|