--no-exit
to prevent process.exit()
(#1018)Mocha.process
hack for phantomjsclean
utility methodsuite.skip()
this.timeout(0)
glob
modulemocha init
tests.html to index.htmlprocess
global leak in the browsersetImmediate
support for 0.10.xMocha#bail()
method--async-only
support to prevent false positives for missing done()
this.timeout(ms)
as Suite#timeout(ms). Closes #599this.timeout("5s")
supporterr.showDiff
is present.length
checks to checkGlobals()
before performing the filterms()
to .slow()
and .timeout()
Mocha#checkLeaks()
to re-enable global leak checksthis.slow()
option [aheckmann].checkGlobals()
solution [guille]fn.call()
from reduce utilfn.call()
from filter utilMocha#globals()
calls, and stringsmocha.reporter()
constructor support [jfirebaugh]mocha.timeout()
Markdown
exportMocha#grep()
, escape regexp stringsdevicePixelRatio
is not defined. Closes #549mocha init
. Closes #539.only()
. Closes #524.skip()
. Closes #524xit()
and xdescribe()
[Brian Moore]Runner#uncaught()
. Closes #494-E, --growl-errors
to growl on failures onlyMocha#invert()
to js apimake tm
HTML
reporter--trace-*
option support--reporter MODULE
--invert
switch to invert --grep
matchesNyan
reporter. Closes #495HTML
suite titles. Closes #486done()
called multiple times with an error test--grep
- regexp escape the inputthis.test.error(err)
support to after each hooks. Closes #287js
code block format error in markdown reporterpath.existsSync
--growl
from test/mocha.opts. Closes #289nyan
reporter [Atsuya Takagi]mocha init <path>
to copy client filesmocha(1)
arg for directories to walk--recursive
[tricknotes]context
for BDD [hokaccha].timeout()
in hooksmocha.run()
in client version--watch
. Closes #345location
as a global on the CS. Closes #311markdown
reporter (github flavour)--watch
[Jakub Nešetřil]mocha.run([reporter])
as argument--watch
: purge require cache. Closes #266HTMLCov
reporterJSONCov
reporter [kunklejr]xdescribe()
and xit()
to the BDD interface. Closes #263 (docs * Changed: make json reporter output pretty json--debug
for debug
to match node.
needed)
Closes #247npm docs mocha
support [TooTallNate]Context
object used for hook and test-case this. Closes #253Suite#clone()
.ctx
reference. Closes #262--watch
support. Closes #242--require
files relative to the CWD. Closes #241done()
after timeout error reporting [Phil Sung]--no-colors
option [Jussi Virtanen]-b, --bail
to exit on first exception [guillermo]-gc
/ --expose-gc
[TooTallNate]qunit
-inspired interface--watch
all .js in the CWD. Closes #139self.test
reference in runner. Closes #189XUnit
reporter [FeeFighters/visionmedia]say(1)
notification support [Maciej Małecki]err.stack
, defaulting to message. Closes #180make tm
mkdir -p the dest. Closes #137-d
for --debug
supportmocha-debug(1)
, use mocha --debug
this.timeout(0)
. Closes #134require()
leak spotted by [guillermo]window.onerror
[guillermo]mocha.css
to PHONY list.mocha.js
to PHONY list.done()
to be called with non-Errormocha.run()
. Closes #126err.message
is not presentSpec
constructor. Closes #116-w, --watch
. Closes #72--ignore-leaks
to ignore global leak checking?grep=pattern
support--globals <names>
to specify accepted globals. Closes #99mocha-debug(1)
on some systems. Closes #232runner.total
--globals <names>
to specify accepted globals. Closes #99mocha-debug(1)
. Closes #232suiteSetup
and suiteTeardown
to TDD interface [David Henderson]Runner#total
for accurate reportingHook
Runnable
Test
is Runnable
--interfaces
--reporters
-c, --colors
. Closes #69-C, --no-colors
to explicitly disable--timeout
second shorthand support, ex --timeout 3s
.make mocha.css
target. Closes #45doc
reporter. Closes #33make tm
. Closes #20-s, --slow <ms>
to specify "slow" test thresholdmocha-debug(1)
mocha.opts
support. Closes #31done()
. Closes #35