From 59068c17a26fb3ebc8246fa865187c90ad8fface Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Wed, 19 Aug 2015 08:56:20 -0500 Subject: [PATCH] Add watch task for karma test --- tasks/gulp-tests.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tasks/gulp-tests.js b/tasks/gulp-tests.js index 09213df410..c0f90f9d8f 100644 --- a/tasks/gulp-tests.js +++ b/tasks/gulp-tests.js @@ -141,6 +141,16 @@ gulp.task('test:api:watch', [ gulp.watch(['website/src/**', 'test/api/**'], ['test:api:clean']); }); +gulp.task('test:karma:watch', ['test:prepare:build'], (cb) => { + let runner = exec( + testBin('karma start'), + (err, stdout) => { + cb(err); + } + ); + pipe(runner); +}); + gulp.task('test:karma', ['test:prepare:build'], (cb) => { let runner = exec( testBin('karma start --single-run'),