fix: fix issue where build would fail but exit as if oy passed

This commit is contained in:
Blade Barringer
2016-03-03 21:04:01 -06:00
parent ea983179a4
commit b61cfefc30

View File

@@ -368,6 +368,11 @@ gulp.task('test', ['test:all'], () => {
`\x1b[31mFailed: ${s.fail},\t`, `\x1b[31mFailed: ${s.fail},\t`,
`\x1b[36mPending: ${s.pend}\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( console.log(