Class: Runner

Runner()

Runner is responsible for running Tests and returning the results It also emits a series of events that test harnesses can use to render status as tests are run

Constructor

new Runner()

Source:

Methods

(async) run(tests) → {Array.<Object>}

Run tests and return a data structure of results
Parameters:
Name Type Description
tests Array.<Test>
Properties:
Name Type Description
passedCount number
failedCount number
assertionCount number
Source:
Returns:
- Object attributes: {bool} passed, {Test} test, {string} message
Type
Array.<Object>

(async) runAndLog()

Run tests and print a summary to the console
Source:

(async) runAndTAP(tests) → {string}

Run tests and return TAP formatted results
Parameters:
Name Type Description
tests Array.<Test>
Source:
Returns:
- TAP formatted results
Type
string