Skip to content

Commit b15510a

Browse files
authored
Include istanbul code coeverage with gulp
1 parent d5b69c5 commit b15510a

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

gulpfile.js

+3-9
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,9 @@
11
var gulp = require('gulp');
22
var mocha = require('gulp-mocha');
3-
var istanbul = require('gulp-istanbul') //my change
3+
var istanbul = require('gulp-istanbul')
44
var fs = require('fs');
55

66
gulp.task('default', function () {
7-
// gulp.src('tests/**/*.js')
8-
// Covering files
9-
// .pipe(istanbul())
10-
// Force `require` to return covered files
11-
//.pipe(istanbul.hookRequire());
12-
137
gulp.src('tests/**/*.js')
148
.pipe(mocha({
159
reporter: 'mocha-junit-reporter',
@@ -19,8 +13,8 @@ gulp.task('default', function () {
1913
}))
2014
.pipe(istanbul())
2115
.pipe(istanbul.hookRequire())
22-
.pipe(istanbul.writeReports({ // my change
16+
.pipe(istanbul.writeReports({
2317
dir: './coverage',
24-
reporters: ['cobertura', 'html', 'json']
18+
reporters: ['cobertura', 'html']
2519
}));
2620
});

0 commit comments

Comments
 (0)