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(