Commit da22bce2 authored by Johann-S's avatar Johann-S
Browse files

Add information about failed tests

parent 64c944bc
Showing with 7 additions and 1 deletion
+7 -1
......@@ -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)
}
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment