Add gulp test:api:watch

This commit is contained in:
Kevin Gisi
2015-06-23 21:33:05 -04:00
parent 981e1f553f
commit 10cb1d651a

View File

@@ -77,6 +77,17 @@ gulp.task('test:api', ['test:prepare:mongo'], (cb) => {
pipe(runner); 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) => { gulp.task('test:karma', ['test:prepare:build'], (cb) => {
let runner = exec( let runner = exec(
testBin('karma start --single-run'), testBin('karma start --single-run'),