Lines Matching refs:Options
977 context.run = mocha.options.delay && common.runWithSuite(suite);
1239 context.run = mocha.options.delay && common.runWithSuite(suite);
1337 context.run = mocha.options.delay && common.runWithSuite(suite);
1462 * Setup mocha with `options`.
1464 * Options:
1476 * @param {Object} options
1480 function Mocha(options) {
1481 options = options || {};
1483 this.options = options;
1484 if (options.grep) this.grep(new RegExp(options.grep));
1485 if (options.fgrep) this.grep(options.fgrep);
1487 this.ui(options.ui);
1488 this.bail(options.bail);
1489 this.reporter(options.reporter, options.reporterOptions);
1490 if (null != options.timeout) this.timeout(options.timeout);
1491 this.useColors(options.useColors);
1492 if (options.enableTimeouts !== null) this.enableTimeouts(options.enableTimeouts);
1493 if (options.slow) this.slow(options.slow);
1541 * @param {Object} reporterOptions optional options
1559 this.options.reporterOptions = reporterOptions;
1631 this.options.grep = 'string' == typeof re
1645 this.options.invert = true;
1658 this.options.ignoreLeaks = !!ignore;
1670 this.options.ignoreLeaks = false;
1682 this.options.fullStackTrace = true;
1694 this.options.growl = true;
1707 this.options.globals = (this.options.globals || []).concat(globals);
1721 this.options.useColors = colors;
1735 this.options.useInlineDiffs = arguments.length && inlineDiffs != undefined
1790 this.options.asyncOnly = true;
1800 this.options.noHighlighting = true;
1810 this.options.delay = true;
1824 var options = this.options;
1825 options.files = this.files;
1826 var runner = new exports.Runner(suite, options.delay);
1827 var reporter = new this._reporter(runner, options);
1828 runner.ignoreLeaks = false !== options.ignoreLeaks;
1829 runner.fullStackTrace = options.fullStackTrace;
1830 runner.asyncOnly = options.asyncOnly;
1831 if (options.grep) runner.grep(options.grep, options.invert);
1832 if (options.globals) runner.globals(options.globals);
1833 if (options.growl) this._growl(runner, reporter);
1834 if (options.useColors !== undefined) {
1835 exports.reporters.Base.useColors = options.useColors;
1837 exports.reporters.Base.inlineDiffs = options.useInlineDiffs;
1864 * Options:
1869 * @param {Object} options
1874 module.exports = function(val, options){
1875 options = options || {};
1877 return options['long'] ? longFormat(val) : shortFormat(val);
3883 * @param {Object} options
3887 function Progress(runner, options) {
3891 , options = options || {}
3900 options.open = options.open || '[';
3901 options.complete = options.complete || '?';
3902 options.incomplete = options.incomplete || Base.symbols.dot;
3903 options.close = options.close || ']';
3904 options.verbose = false;
3920 if (lastN === n && !options.verbose) {
3928 process.stdout.write(color('progress', ' ' + options.open));
3929 process.stdout.write(Array(n).join(options.complete));
3930 process.stdout.write(Array(i).join(options.incomplete));
3931 process.stdout.write(color('progress', options.close));
3932 if (options.verbose) {
4157 function XUnit(runner, options) {
4163 if (options.reporterOptions && options.reporterOptions.output) {
4167 self.fileStream = fs.createWriteStream(options.reporterOptions.output);
5846 var options = { interval: 100 };
5849 fs.watchFile(file, options, function(curr, prev){
6516 * Setup mocha with the given setting options.
6534 var options = mocha.options;
6545 if (document && document.getElementById('mocha') && options.noHighlighting !== true) {