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
beb33963
...
beb33963a1502020be3517eadebbda0890d9b957
authored
2013-03-13 22:13:57 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed --fail-fast wasn't displaying failure details
1 parent
046550d6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
modules/tester.js
modules/tester.js
View file @
beb3396
...
...
@@ -139,10 +139,6 @@ var Tester = function Tester(casper, options) {
var
valueKeys
=
Object
.
keys
(
failure
.
values
),
timeElapsed
=
new
Date
()
-
this
.
currentTestStartTime
;
this
.
currentSuite
.
addFailure
(
failure
,
timeElapsed
-
this
.
lastAssertTime
);
// check for fast failing
if
(
this
.
options
.
failFast
)
{
return
this
.
terminate
(
'--fail-fast: aborted all remaining tests'
);
}
this
.
lastAssertTime
=
timeElapsed
;
// special printing
if
(
failure
.
type
)
{
...
...
@@ -160,6 +156,10 @@ var Tester = function Tester(casper, options) {
valueKeys
.
forEach
(
function
(
name
)
{
this
.
comment
(
f
(
' %s: %s'
,
name
,
utils
.
formatTestValue
(
failure
.
values
[
name
],
name
)));
}.
bind
(
this
));
// check for fast failing
if
(
this
.
options
.
failFast
)
{
return
this
.
terminate
(
'--fail-fast: aborted all remaining tests'
);
}
});
// casper events
...
...
Please
register
or
sign in
to post a comment