Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/twbs/bootstrap.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorXhmikosR <xhmikosr@gmail.com>2018-03-13 15:08:56 +0300
committerGitHub <noreply@github.com>2018-03-13 15:08:56 +0300
commita93830c9fd526983bf14cbb891c13ebf1ef9eb4e (patch)
tree0b5de421a8c59b1a49eab2b61c82d6f3ede03d11 /build
parent2c41b0aea6b2b1d1f1d812ab4455bea4a0759428 (diff)
saucelabs-unit-test.js: tweak failed tests message (#25836)
Diffstat (limited to 'build')
-rw-r--r--build/saucelabs-unit-test.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/build/saucelabs-unit-test.js b/build/saucelabs-unit-test.js
index 95b68345c0..5a0142e033 100644
--- a/build/saucelabs-unit-test.js
+++ b/build/saucelabs-unit-test.js
@@ -58,6 +58,7 @@ const waitingCallback = (error, body, id) => {
console.log(`Platform: ${test.platform.join(', ')}`)
console.log(`Passed: ${passed.toString()}`)
console.log(`URL: ${test.url}\n`)
+
if (errorStr) {
console.error(errorStr)
}
@@ -71,8 +72,8 @@ const waitingCallback = (error, body, id) => {
if (jobsDone === browsersFile.length - 1) {
jsUnitSaucelabs.stop()
if (jobsDone > jobsSucceeded) {
- const failedTest = jobsDone - jobsSucceeded
- throw new Error(`Some test(s) failed (${failedTest})`)
+ const failedTests = jobsDone - jobsSucceeded
+ throw new Error(`${failedTests} test${failedTests > 1 ? 's' : ''} failed.`)
}
console.log('All tests passed')