Add -f test flag to stop after first test failure
(Mocha has a 'bail' config flag that's supposed to do this, but it doesn't seem to work when passed to mocha.setup() (maybe because we're setting a custom fail handler?), so this just calls abort() on the runner manually.)
This commit is contained in:
parent
15252623d7
commit
f3a6b41c1c
3 changed files with 18 additions and 3 deletions
|
@ -33,6 +33,7 @@ ZoteroUnit.prototype = {
|
|||
handle:function(cmdLine) {
|
||||
this.tests = cmdLine.handleFlagWithParam("test", false);
|
||||
this.noquit = cmdLine.handleFlag("noquit", false);
|
||||
this.bail = cmdLine.handleFlag("bail", false);
|
||||
},
|
||||
|
||||
dump:function(x) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue