Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
653867b3
...
653867b3b7ed9c238997fa7c3af89d684b11895e
authored
2013-03-10 12:11:15 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
skipped tests should not affect build final status
1 parent
0e598374
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
modules/tester.js
modules/tester.js
View file @
653867b
...
...
@@ -1180,7 +1180,7 @@ Tester.prototype.processAssertionResult = function processAssertionResult(result
eventName
=
'skipped'
;
style
=
'SKIP'
;
status
=
this
.
options
.
skipText
;
}
else
if
(
!
result
.
success
)
{
}
else
if
(
!
result
.
success
)
{
eventName
=
'fail'
;
style
=
'RED_BAR'
;
status
=
this
.
options
.
failText
;
...
...
@@ -1286,20 +1286,17 @@ Tester.prototype.renderResults = function renderResults(exit, status, save) {
if
(
failed
>
0
)
{
statusText
=
this
.
options
.
failText
;
style
=
'RED_BAR'
;
}
else
if
(
skipped
>
0
)
{
statusText
=
this
.
options
.
skipText
;
style
=
'SKIP_BAR'
;
}
else
{
statusText
=
this
.
options
.
passText
;
style
=
'GREEN_BAR'
;
}
result
=
f
(
'%s %
s tests executed in %ss, %d passed, %d failed%
s, %d skipped.'
,
result
=
f
(
'%s %
d tests executed in %ss, %d passed, %d failed, %d dubiou
s, %d skipped.'
,
statusText
,
total
,
utils
.
ms2seconds
(
this
.
suiteResults
.
calculateDuration
()),
passed
,
failed
,
dubious
?
f
(
' (%d dubious)'
,
dubious
)
:
''
,
dubious
,
skipped
);
}
this
.
casper
.
echo
(
result
,
style
,
this
.
options
.
pad
);
...
...
Please
register
or
sign in
to post a comment