Class: Mocha_Helper

Mocha_Helper()

new Mocha_Helper()

Used for pulling in test files, and launching a Mocha test suite.
Source:

Methods

(static) collectTests(dir)

Goes through the passed directory, and extracts any tests that match the regular expression.
Parameters:
Name Type Description
dir String The directory to search
Source:

(static) run(testFiles, modRoot, opts)

Runs through the Mocha tests outlined in device_config.js
Parameters:
Name Type Description
testFiles Array An array of test files for Mocha to run
modRoot String The path to the root of the project being tested
opts Object Optional Arguments
Properties
Name Type Description
timeout Int Timeout threshold for Mocha tests
slow Int Slow threshold for Mocha tests
Source: