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
48becb30
...
48becb3007ed999011d475e66f9504f987ea8300
authored
2014-07-06 13:36:54 +0200
by
Christophe Porteneuve
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Test for fix on #687 ('fail' event fired in --fail-fast mode)
1 parent
78162b5d
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
tests/clitests/fail-fast/standard/hook.js
tests/clitests/runtests.py
tests/clitests/fail-fast/standard/hook.js
0 → 100644
View file @
48becb3
/* global casper */
casper
.
test
.
on
(
'fail'
,
function
doSomething
()
{
'use strict'
;
casper
.
echo
(
'fail event fired!'
);
});
casper
.
test
.
begin
(
'hook'
,
0
,
function
(
t
)
{
'use strict'
;
t
.
done
();
});
tests/clitests/runtests.py
View file @
48becb3
...
...
@@ -391,6 +391,7 @@ class TestCommandOutputTest(CasperExecTestBase):
self
.
assertCommandOutputContains
(
'test
%
s --fail-fast'
%
folder_path
,
[
'# test 1'
,
'# test 2'
,
'fail event fired!'
,
'--fail-fast: aborted all remaining tests'
,
'FAIL 2 tests executed'
,
'1 passed'
,
...
...
Please
register
or
sign in
to post a comment