Kill mocha test if not set to watch

This commit is contained in:
Blade Barringer
2015-10-17 12:23:04 -05:00
parent 9a14368170
commit 59e2b92dae

View File

@@ -293,6 +293,9 @@ gulp.task('test:api', ['test:startServer', 'test:prepare:mongo'], (done) => {
});
mocha.run((numberOfFailures) => {
if (!process.env.RUN_INTEGRATION_TEST_FOREVER) {
process.exit(numberOfFailures);
}
done();
});
});