Skip to content

Commit a690e75

Browse files
committed
stick to gulp-mocha 3.0.1 until this issue sindresorhus/gulp-mocha#159 is fixed...
1 parent 0954ffe commit a690e75

File tree

3 files changed

+476
-126
lines changed

3 files changed

+476
-126
lines changed

gulpfile.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
chalk = require('chalk');
77

88
const TEST_LIB = "tests"; //where our test lib is
9-
const filesToBeTested = ["config/*.js", "lib/**/*.js", "./*.js"]; //globs we are testing
9+
const filesToBeTested = ["config/**/*.js", "lib/**/*.js", "./*.js"]; //globs we are testing
1010

1111
function handleError(err) {
1212
console.log(err.toString());
@@ -35,10 +35,11 @@
3535
return gulp.src(filesToBeTested)
3636
// Covering files
3737
.pipe(istanbul({ includeUntested: true }))
38+
.pipe(istanbul.hookRequire())
3839
.on('finish', function() {
3940
gulp.src([TEST_LIB + '/*.spec.js'])
4041
.pipe(mocha({
41-
reporter: 'list'
42+
reporter: 'spec'
4243
}))
4344
// Creating the reports after tests ran
4445
.pipe(istanbul.writeReports())

0 commit comments

Comments
 (0)