visionmedia/mocha — pull request #308 by hokaccha (2012-03-09 10:29:21+00:00)
Title: Added browser setup options

The problem is that the place of a setting is scattering.

ui setting is `setup()`, reporter setting is `run()`, globals setting is `runner.globals()`, timeout is inner testing `this.timeout()`.

This patch can be `setup()` arguments all settings.

For example.

mocha.setup({
ui: 'bdd',
globals: ['okGlobalA', 'okGlobalB'],
timeout: 1500,
reporter: mocha.reporters.TAP
})