From b61cfefc3015d4d00df9a60074bace5add32ffd0 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Thu, 3 Mar 2016 21:04:01 -0600 Subject: [PATCH] fix: fix issue where build would fail but exit as if oy passed --- tasks/gulp-tests.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tasks/gulp-tests.js b/tasks/gulp-tests.js index ebabb668c6..b354364d67 100644 --- a/tasks/gulp-tests.js +++ b/tasks/gulp-tests.js @@ -368,6 +368,11 @@ gulp.task('test', ['test:all'], () => { `\x1b[31mFailed: ${s.fail},\t`, `\x1b[36mPending: ${s.pend}\t` ); + + if (s.pass === 0) { + console.error('ERROR: Detected a test suite with 0 passing tests. Something may be wrong causing the build to error.'); + process.exit(1); + } }); console.log(