gulp-core-build-mocha is a
gulp-core-build subtask for running unit tests and creating coverage reports using mocha/chai.
This setup is useful for unit testing build tools, as it runs in the node process rather than in a browser.
gulp-core-build-mocha is a gulp-core-build plugin which will automatically execute a set of unit test files using the mocha test suite.
Simply create a file which ends in
.test.js. Next, register the Mocha task to gulp-core-build.
A coverage report is both written to the console and to a folder on disk.
Sets the glob pattern which is used to locate the files to run tests on.
The folder in which to store the coverage reports.
This task selects which files should be covered by the code coverage tool.
An array of globs which define which files should be included in code coverage reports.