Options Flashcards
Review the Mocha command line options, in both long and short form.
–colors
force enabling of colors (Long version of -c)
–growl
(Long Form) enable growl notification support
–invert
inverts –grep matches (Long version of -i)
–slow
“slow” test threshold in milliseconds [75]
–timeout
set test-case timeout in milliseconds [2000]
–bail
(Long Form) bail after first test failure
–async-only
(Long form) force all tests to take a callback (async)
–check-leaks
By default Mocha will not check for global variables leaked while running tests, to enable this pass –check-leaks, to specify globals that are acceptable use –globals, for example –globals jQuery,MyLib.
–compilers :,…
use the given module(s) to compile files
–debug
Enables node’s debugger support, this executes your script(s) with node debug <file …> allowing you to step through code and break with the debugger statement.</file>
–debug-brk
enable node’s debugger breaking on the first line
–help
The long form version of the comand line option for getting help information.
–globals <names></names>
Accepts a comma-delimited list of accepted global variable names. For example suppose your app deliberately exposes a global named app and YUI, you may want to add –globals app,YUI.
–interfaces
display available interfaces
–no-colors
force disabling of colors
–recursive
include sub directories