☕️ Classic, reliable, trusted test framework for Node.js and the browser
Added -s, --slow <ms> to specify "slow" test threshold
Tj Holowaychuk5e5f3644772e
diff --git a/bin/mocha b/bin/mochaindex f95dda79..9f6e3bbe 100755--- a/bin/mocha+++ b/bin/mocha@@ -33,6 +33,7 @@ program.option('-u, --ui <name>', 'specify user-interface (bdd|tdd|exports)', 'bdd').option('-g, --grep <pattern>', 'only run tests matching <pattern>').option('-t, --timeout <ms>', 'set test-case timeout in milliseconds [2000]')+ .option('-s, --slow <ms>', '"slow" test threshold in milliseconds [75]').option('-G, --growl', 'enable growl support')// report help@@ -79,9 +80,14 @@ Error.stackTraceLimit = Infinity; // TODO: config// reportervar suite = new Suite('')+ , Base = require('../lib/reporters/base'), Reporter = require('../lib/reporters/' + program.reporter), ui = interfaces[program.ui](suite);+// --slow <ms>++if (program.slow) Base.slow = ~~program.slow;+// --timeoutif (program.timeout) suite.timeout(~~program.timeout);