]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Watch mode runs tests.
authorEvert Timberg <evert.timberg@gmail.com>
Sun, 23 Aug 2015 19:55:10 +0000 (15:55 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sun, 23 Aug 2015 19:55:10 +0000 (15:55 -0400)
gulpfile.js
karma.conf.js

index d7dda48bf52231b288b53b89277714c53863d996..560c6b496411622e2e559a587d1bd56cc2462412 100644 (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']);
index a0d60308f089a5f64b89a91887a82209826338f4..cbf72b381ec32d8500ae5ae6c5e7fd82b5374e25 100644 (file)
@@ -1,9 +1,7 @@
 module.exports = function(config) {
        config.set({
-               autoWatch: false,
                browsers: ['Chrome', 'Firefox'],
                frameworks: ['jasmine'],
                reporters: ['progress'],
-               singleRun: false
        });
 };
\ No newline at end of file