TestError

TestError

A class to represent a failure while testing. Takes in an exitCode to specify what the program should exit with.

Constructor

new TestError(msg, exitCodeopt)

Source:
Parameters:
Name Type Attributes Description
msg String

the message to give to the user to describe this failure.

exitCode Number <optional>

the code to exit the process with. Defaults to 1.