I\'m using Gulp in my small project in order to run tests and lint my code. When any of those tasks fail, Gulp always exits with return code 0. If I run jshint by hand, it e
gulp.task('default', function(done) { return gulp.src( ... ).pipe(jasmine( ... )).on('error', function(err) { done(err); } ) });
Works for me