Fixes gulp coverage
This commit is contained in:
parent
d20a5cc593
commit
2ab42595e4
12
gulpfile.js
12
gulpfile.js
@ -56,15 +56,19 @@ gulp.task('watch:lint', function() {
|
||||
});
|
||||
|
||||
gulp.task('coverage', function() {
|
||||
gulp.src(files)
|
||||
return gulp.src(files)
|
||||
.pipe(istanbul())
|
||||
.pipe(tap(function(f) {
|
||||
// Make sure all files are loaded to get accurate coverage data
|
||||
require(f.path);
|
||||
}))
|
||||
.on('end', testMocha.pipe(
|
||||
istanbul.writeReports('coverage')
|
||||
));
|
||||
.on('end', function() {
|
||||
gulp.src(tests)
|
||||
.pipe(istanbul.writeReports('coverage'))
|
||||
.pipe(new mocha({reporter: 'spec'}))
|
||||
.on('end', function() {})
|
||||
.on('error', ignoreError)
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('jsdoc', function() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user