Watch mode runs tests.

This commit is contained in:
Evert Timberg 2015-08-23 15:55:10 -04:00
parent c1cca356df
commit f636a78977
2 changed files with 3 additions and 8 deletions

View File

@ -107,11 +107,8 @@ gulp.task('unittest', function() {
return gulp.src(files)
.pipe(karma({
configFile: 'karma.conf.js',
action: 'run'
}))
.on('error', function(err) {
throw err;
});
action: 'watch'
}));
});
gulp.task('library-size', function() {
@ -133,7 +130,7 @@ gulp.task('module-sizes', function() {
});
gulp.task('watch', function() {
gulp.watch('./src/**', ['build']);
gulp.watch('./src/**', ['build', 'unittest']);
});
gulp.task('test', ['jshint', 'valid']);

View File

@ -1,9 +1,7 @@
module.exports = function(config) {
config.set({
autoWatch: false,
browsers: ['Chrome', 'Firefox'],
frameworks: ['jasmine'],
reporters: ['progress'],
singleRun: false
});
};