From 59e2b92daee56f5c7a0eddcbe59122683d8ed8e8 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Sat, 17 Oct 2015 12:23:04 -0500 Subject: [PATCH] Kill mocha test if not set to watch --- tasks/gulp-tests.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tasks/gulp-tests.js b/tasks/gulp-tests.js index a929214718..b729afea6d 100644 --- a/tasks/gulp-tests.js +++ b/tasks/gulp-tests.js @@ -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(); }); });