aboutsummaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorJohann-S <[email protected]>2017-10-10 11:50:55 +0200
committerJohann-S <[email protected]>2017-10-10 12:58:41 +0200
commitda22bce2f073d95689a474b294cd16db9ed41862 (patch)
tree3aacaa6702c71a66e0bc6a14f2a196068e0cc618 /build
parent64c944bca80f71aea6eae3e2e9a19fd4fdc24461 (diff)
downloadbootstrap-da22bce2f073d95689a474b294cd16db9ed41862.tar.xz
bootstrap-da22bce2f073d95689a474b294cd16db9ed41862.zip
Add information about failed tests
Diffstat (limited to 'build')
-rw-r--r--build/saucelabs-unit-test.js8
1 files changed, 7 insertions, 1 deletions
diff --git a/build/saucelabs-unit-test.js b/build/saucelabs-unit-test.js
index 3ff7fcc40..0b4a3b5f0 100644
--- a/build/saucelabs-unit-test.js
+++ b/build/saucelabs-unit-test.js
@@ -70,7 +70,13 @@ const waitingCallback = (error, body, id) => {
// Exit
if (jobsDone === browsersFile.length - 1) {
jsUnitSaucelabs.stop()
- process.exit(jobsDone === jobsSucceeded ? 0 : 1)
+ if (jobsDone > jobsSucceeded) {
+ const failedTest = jobsDone - jobsSucceeded
+ throw new Error(`Some test(s) failed (${failedTest})`)
+ }
+
+ console.log('All tests passed')
+ process.exit(0)
}
}
}