Commit 48becb30 48becb3007ed999011d475e66f9504f987ea8300 by Christophe Porteneuve

Test for fix on #687 ('fail' event fired in --fail-fast mode)

1 parent 78162b5d
/* 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();
});
......@@ -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',
......