Skip to content

Commit

Permalink
Pass exit code when test task ends
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeno Rocha authored and eduardolundgren committed Jul 23, 2014
1 parent 163dded commit acb71b0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,10 @@ gulp.task('lint', function() {
.pipe(jshint.reporter(stylish));
});

gulp.task('test', function() {
return gulp.src('test/*.js').pipe(nodeunit());
gulp.task('test', function(cb) {
gulp.src('test/*.js')
.pipe(nodeunit())
.on('end', cb);
});

gulp.task('test-watch', function() {
Expand Down

0 comments on commit acb71b0

Please sign in to comment.