Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
da22bce2
Commit
da22bce2
authored
7 years ago
by
Johann-S
Browse files
Options
Download
Email Patches
Plain Diff
Add information about failed tests
parent
64c944bc
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/saucelabs-unit-test.js
+7
-1
build/saucelabs-unit-test.js
with
7 additions
and
1 deletion
+7
-1
build/saucelabs-unit-test.js
+
7
-
1
View file @
da22bce2
...
...
@@ -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
)
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment