Generates a suite file from gulp.src
glob on the fly for Browserify and - subsequently - Mocha.
npm i --save-dev gulp-mocha-browserify-suite
var generateSuite = require("gulp-mocha-browserify-suite");
gulp.task('test', function() {
return gulp.src('./test/**/*_spec.js', {read: false})
.pipe(generateSuite())
.pipe(browserify())
.pipe(concat('bundle.js'))
.pipe(gulp.dest('./tmp'))
.pipe(mocha());
});
Type: String
Default: suite.js
Name of your suite file, if you want to save it for some reason.
Type: String
Default: ./test
Relative path of your test dir, where browserify will start to require
your modules from.