Skip to content
GitLab
Explore
Projects
Groups
Snippets
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
a93830c9
Unverified
Commit
a93830c9
authored
7 years ago
by
XhmikosR
Committed by
GitHub
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
saucelabs-unit-test.js: tweak failed tests message (#25836)
parent
2c41b0ae
3 merge requests
!28721
Hot test
,
!27561
Adds font-weight-medium to font weight classes
,
!17021
v4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
build/saucelabs-unit-test.js
+3
-2
build/saucelabs-unit-test.js
with
3 additions
and
2 deletions
+3
-2
build/saucelabs-unit-test.js
+
3
-
2
View file @
a93830c9
...
@@ -58,6 +58,7 @@ const waitingCallback = (error, body, id) => {
...
@@ -58,6 +58,7 @@ const waitingCallback = (error, body, id) => {
console
.
log
(
`Platform:
${
test
.
platform
.
join
(
'
,
'
)}
`
)
console
.
log
(
`Platform:
${
test
.
platform
.
join
(
'
,
'
)}
`
)
console
.
log
(
`Passed:
${
passed
.
toString
()}
`
)
console
.
log
(
`Passed:
${
passed
.
toString
()}
`
)
console
.
log
(
`URL:
${
test
.
url
}
\n`
)
console
.
log
(
`URL:
${
test
.
url
}
\n`
)
if
(
errorStr
)
{
if
(
errorStr
)
{
console
.
error
(
errorStr
)
console
.
error
(
errorStr
)
}
}
...
@@ -71,8 +72,8 @@ const waitingCallback = (error, body, id) => {
...
@@ -71,8 +72,8 @@ const waitingCallback = (error, body, id) => {
if
(
jobsDone
===
browsersFile
.
length
-
1
)
{
if
(
jobsDone
===
browsersFile
.
length
-
1
)
{
jsUnitSaucelabs
.
stop
()
jsUnitSaucelabs
.
stop
()
if
(
jobsDone
>
jobsSucceeded
)
{
if
(
jobsDone
>
jobsSucceeded
)
{
const
failedTest
=
jobsDone
-
jobsSucceeded
const
failedTest
s
=
jobsDone
-
jobsSucceeded
throw
new
Error
(
`
Some test(s) failed (
${
failedTest
}
)
`
)
throw
new
Error
(
`
${
failedTests
}
test
${
failedTests
>
1
?
'
s
'
:
''
}
failed.
`
)
}
}
console
.
log
(
'
All tests passed
'
)
console
.
log
(
'
All tests passed
'
)
...
...
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
Menu
Explore
Projects
Groups
Snippets