File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed
Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,11 @@ var jscs = require('gulp-jscs');
1111var jscs = require ( 'gulp-jscs-custom' ) ;
1212var isWin = / ^ w i n / . test ( process . platform ) ;
1313
14+ function handleError ( err ) {
15+ console . log ( err . toString ( ) ) ;
16+ this . emit ( 'end' ) ;
17+ }
18+
1419gulp . task ( 'jsdoc' , shell . task ( [
1520 ( isWin ) ?
1621 '"node_modules/.bin/jsdoc.cmd" -c ./doc-config.json' :
@@ -30,20 +35,21 @@ gulp.task('lint', function () {
3035
3136gulp . task ( 'pre-test' , function ( ) {
3237 return gulp . src ( [ './src/**/*.js' ] )
33- // Covering files
38+ // Covering files
3439 . pipe ( istanbul ( ) )
35- // Force `require` to return covered files
40+ // Force `require` to return covered files
3641 . pipe ( istanbul . hookRequire ( ) ) ;
3742} ) ;
38-
43+
3944gulp . task ( 'test' , [ 'pre-test' ] , function ( ) {
4045 return gulp . src ( 'test/**/*.spec.js' )
4146 . pipe ( jasmine ( {
4247 reporter : new reporters . JUnitXmlReporter ( {
4348 savePath : 'test/reports'
4449 } )
4550 } ) )
46- // Creating the reports after tests ran
51+ . on ( "error" , handleError )
52+ // Creating the reports after tests ran
4753 . pipe ( istanbul . writeReports ( {
4854 dir : './test/reports/coverage' ,
4955 reporters : [ 'clover' ]
You can’t perform that action at this time.
0 commit comments