Skip to content
This repository has been archived by the owner on Jun 9, 2023. It is now read-only.

Latest commit

 

History

History
83 lines (69 loc) · 6.46 KB

cp.spec.DefaultHandler.md

File metadata and controls

83 lines (69 loc) · 6.46 KB

docs » cp.spec.DefaultHandler


Default implementation of Handler, which outputs via the standard print function.

API Overview

API Documentation

Methods

Signature cp.spec.DefaultHandler:aborted(run, msg)
Type Method
Description Prints an "[ABORT]" message.
Parameters
  • run - the run
  • msg - the message string.
Signature cp.spec.DefaultHandler:failed(run, msg)
Type Method
Description Prints a "[FAIL]" message.
Parameters
  • run - the run
  • msg - the message string.
Signature cp.spec.DefaultHandler:filter(run, msg)
Type Method
Description Prints a "[FILTER]" message.
Parameters
  • run - the run
  • msg - the message string.
Signature cp.spec.DefaultHandler:printf(test, ...)
Type Method
Description Prints a spacer (if not the first line), followed by the text,
Parameters
  • text - The message to print.
  • ... - The parameters to interpolate into the text message.
Signature cp.spec.DefaultHandler:printSpacer()
Type Method
Description Prints a blank line if this is not the first time it has been called.
Signature cp.spec.DefaultHandler:start(run, msg)
Type Method
Description If the handler or run is verbose, prints a "[PASS]" message.
Parameters
  • run - the run
  • msg - the message string.
Signature cp.spec.DefaultHandler:stop(run)
Type Method
Description If the handler or run is verbose, prints a "[STOP]" message.
Parameters
Signature cp.spec.DefaultHandler:summary(run, report)
Type Method
Description If the handler or run is verbose, prints a "[RESULT]" message.
Parameters
Signature cp.spec.DefaultHandler:waiting(run, timeout)
Type Method
Description Prints a "[WAIT]" message with the timeout value..