gulp-core-buildsubtask 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.
UsageSimply 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.
testMatchSets the glob pattern which is used to locate the files to run tests on. Default: 'lib/\*\/\*.test.js'
reportDirThe folder in which to store the coverage reports. Default: 'coverage'
UsageThis task selects which files should be covered by the code coverage tool.
coverageMatchAn array of globs which define which files should be included in code coverage reports. Default: