mirror of
https://github.com/twbs/bootstrap.git
synced 2025-02-06 04:08:22 +01:00
Add information about failed tests
This commit is contained in:
parent
64c944bca8
commit
da22bce2f0
@ -70,7 +70,13 @@ const waitingCallback = (error, body, id) => {
|
|||||||
// Exit
|
// Exit
|
||||||
if (jobsDone === browsersFile.length - 1) {
|
if (jobsDone === browsersFile.length - 1) {
|
||||||
jsUnitSaucelabs.stop()
|
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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user