Internationalisation
Bundled Plugins API
DefaultHandler
Default implementation of Handler, which outputs via the standard print function.

API Overview

API Documentation

Methods

aborted

Signature
cp.spec.DefaultHandler:aborted(run, msg)
Type
Method
Description
Prints an "[ABORT]" message.
Parameters
  • run - the run
  • msg - the message string.

failed

Signature
cp.spec.DefaultHandler:failed(run, msg)
Type
Method
Description
Prints a "[FAIL]" message.
Parameters
  • run - the run
  • msg - the message string.

filter

Signature
cp.spec.DefaultHandler:filter(run, msg)
Type
Method
Description
Prints a "[FILTER]" message.
Parameters
  • run - the run
  • msg - the message string.

printf

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.

start

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.

stop

Signature
cp.spec.DefaultHandler:stop(run)
Type
Method
Description
If the handler or run is verbose, prints a "[STOP]" message.
Parameters
  • run - the run

summary

Signature
cp.spec.DefaultHandler:summary(run, report)
Type
Method
Description
If the handler or run is verbose, prints a "[RESULT]" message.
Parameters

waiting

Signature
cp.spec.DefaultHandler:waiting(run, timeout)
Type
Method
Description
Prints a "[WAIT]" message with the timeout value..
Last modified 1mo ago
Export as PDF
Copy link