Merge pull request #5472 from gisikw/api-test-watch

Add gulp test:api:watch
This commit is contained in:
Blade Barringer 2015-06-23 21:08:33 -05:00
commit 095f0f17c0

View file

@ -77,6 +77,17 @@ gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
pipe(runner);
});
gulp.task('test:api:clean', (cb) => {
pipe(exec(testBin("mocha test/api"), () => cb()));
});
gulp.task('test:api:watch', [
'test:prepare:mongo',
'test:api:clean'
], () => {
gulp.watch(['website/src/**', 'test/api/**'], ['test:api:clean']);
});
gulp.task('test:karma', ['test:prepare:build'], (cb) => {
let runner = exec(
testBin('karma start --single-run'),