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
e8ba4d18
...
e8ba4d1867b1a95affa5124ce7443a8b60dbff0a
authored
2012-01-11 15:02:28 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed missing text padding in result reports
1 parent
3f83240d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
modules/tester.js
modules/tester.js
View file @
e8ba4d1
...
...
@@ -446,16 +446,16 @@ var Tester = function(casper, options) {
result
=
f
(
'%s %s tests executed, %d passed, %d failed.'
,
statusText
,
total
,
this
.
testResults
.
passed
,
this
.
testResults
.
failed
);
}
casper
.
echo
(
this
.
colorize
(
result
,
style
,
this
.
options
.
pad
)
);
casper
.
echo
(
result
,
style
,
this
.
options
.
pad
);
if
(
this
.
testResults
.
failed
>
0
)
{
this
.
renderFailureDetails
(
this
.
testResults
.
failures
);
}
if
(
save
&&
utils
.
isFunction
(
require
))
{
try
{
fs
.
write
(
save
,
this
.
exporter
.
getXML
(),
'w'
);
casper
.
echo
(
f
(
'Result log stored in %s'
,
save
),
'INFO'
);
casper
.
echo
(
f
(
'Result log stored in %s'
,
save
),
'INFO'
,
80
);
}
catch
(
e
)
{
casper
.
echo
(
f
(
'Unable to write results to %s: %s'
,
save
,
e
),
'ERROR'
);
casper
.
echo
(
f
(
'Unable to write results to %s: %s'
,
save
,
e
),
'ERROR'
,
80
);
}
}
if
(
exit
===
true
)
{
...
...
Please
register
or
sign in
to post a comment