File tree 1 file changed +3
-9
lines changed
1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change 1
1
var gulp = require ( 'gulp' ) ;
2
2
var mocha = require ( 'gulp-mocha' ) ;
3
- var istanbul = require ( 'gulp-istanbul' ) //my change
3
+ var istanbul = require ( 'gulp-istanbul' )
4
4
var fs = require ( 'fs' ) ;
5
5
6
6
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
-
13
7
gulp . src ( 'tests/**/*.js' )
14
8
. pipe ( mocha ( {
15
9
reporter : 'mocha-junit-reporter' ,
@@ -19,8 +13,8 @@ gulp.task('default', function () {
19
13
} ) )
20
14
. pipe ( istanbul ( ) )
21
15
. pipe ( istanbul . hookRequire ( ) )
22
- . pipe ( istanbul . writeReports ( { // my change
16
+ . pipe ( istanbul . writeReports ( {
23
17
dir : './coverage' ,
24
- reporters : [ 'cobertura' , 'html' , 'json' ]
18
+ reporters : [ 'cobertura' , 'html' ]
25
19
} ) ) ;
26
20
} ) ;
You can’t perform that action at this time.
0 commit comments