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() {
});
gulp.task('watch', function() {
- gulp.watch('./src/**', ['build']);
+ gulp.watch('./src/**', ['build', 'unittest']);
});
gulp.task('test', ['jshint', 'valid']);
module.exports = function(config) {
config.set({
- autoWatch: false,
browsers: ['Chrome', 'Firefox'],
frameworks: ['jasmine'],
reporters: ['progress'],
- singleRun: false
});
};
\ No newline at end of file