Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

Added `-b, --bail` option to mocha commander.

Guillermo Rauch2f0876f14786
diff --git a/bin/_mocha b/bin/_mocha
index 619c3a71..5022398b 100755
--- a/bin/_mocha
+++ b/bin/_mocha
@@ -50,6 +50,7 @@ program
.option('-G, --growl', 'enable growl notification support')
.option('-S, --say [voice]', 'enable say notification support')
.option('-d, --debug', "enable node's debugger")
+ .option('-b, --bail', "bail after first test failure")
.option('--globals <names>', 'allow the given comma-delimited global [names]', list, [])
.option('--ignore-leaks', 'ignore global variable leaks')
.option('--interfaces', 'display available interfaces')