mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Watch mode runs tests.
This commit is contained in:
parent
c1cca356df
commit
f636a78977
@ -107,11 +107,8 @@ gulp.task('unittest', function() {
|
|||||||
return gulp.src(files)
|
return gulp.src(files)
|
||||||
.pipe(karma({
|
.pipe(karma({
|
||||||
configFile: 'karma.conf.js',
|
configFile: 'karma.conf.js',
|
||||||
action: 'run'
|
action: 'watch'
|
||||||
}))
|
}));
|
||||||
.on('error', function(err) {
|
|
||||||
throw err;
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('library-size', function() {
|
gulp.task('library-size', function() {
|
||||||
@ -133,7 +130,7 @@ gulp.task('module-sizes', function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('watch', function() {
|
gulp.task('watch', function() {
|
||||||
gulp.watch('./src/**', ['build']);
|
gulp.watch('./src/**', ['build', 'unittest']);
|
||||||
});
|
});
|
||||||
|
|
||||||
gulp.task('test', ['jshint', 'valid']);
|
gulp.task('test', ['jshint', 'valid']);
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
module.exports = function(config) {
|
module.exports = function(config) {
|
||||||
config.set({
|
config.set({
|
||||||
autoWatch: false,
|
|
||||||
browsers: ['Chrome', 'Firefox'],
|
browsers: ['Chrome', 'Firefox'],
|
||||||
frameworks: ['jasmine'],
|
frameworks: ['jasmine'],
|
||||||
reporters: ['progress'],
|
reporters: ['progress'],
|
||||||
singleRun: false
|
|
||||||
});
|
});
|
||||||
};
|
};
|
Loading…
Reference in New Issue
Block a user