.TH MOCHA "1" "mocha" "User Commands" .SH NAME mocha \- simple, flexible, fun test framework .SH SYNOPSIS Usage: mocha [debug] [options] [files] .SH DESCRIPTION Mocha is a feature-rich JavaScript test framework running on Node.js and browser, making asynchronous testing simple and fun. Mocha tests run serially, allowing for flexible and accurate reporting, while mapping uncaught exceptions to the correct test cases. .IP .SH COMMANDS .TP \fBinit\fR initialize a client\-side mocha setup at .IP .SH OPTIONS .TP \fB\-h\fR, \fB\-\-help\fR output usage information .TP \fB\-V\fR, \fB\-\-version\fR output the version number .TP \fB\-r\fR, \fB\-\-require\fR require the given module .TP \fB\-R\fR, \fB\-\-reporter\fR specify the reporter to use .TP \fB\-u\fR, \fB\-\-ui\fR specify user\-interface (bdd|tdd|exports) .TP \fB\-g\fR, \fB\-\-grep\fR only run tests matching .TP \fB\-i\fR, \fB\-\-invert\fR inverts \fB\-\-grep\fR matches .TP \fB\-t\fR, \fB\-\-timeout\fR set test\-case timeout in milliseconds [2000] .TP \fB\-s\fR, \fB\-\-slow\fR "slow" test threshold in milliseconds [75] .TP \fB\-w\fR, \fB\-\-watch\fR watch files for changes .TP \fB\-c\fR, \fB\-\-colors\fR force enabling of colors .TP \fB\-C\fR, \fB\-\-no\-colors\fR force disabling of colors .TP \fB\-G\fR, \fB\-\-growl\fR enable growl notification support .TP \fB\-d\fR, \fB\-\-debug\fR enable node's debugger, synonym for node \fB\-\-debug\fR .TP \fB\-b\fR, \fB\-\-bail\fR bail after first test failure .TP \fB\-A\fR, \fB\-\-async\-only\fR force all tests to take a callback (async) .TP \fB\-S\fR, \fB\-\-sort\fR sort test files .TP \fB\-\-recursive\fR include sub directories .TP \fB\-\-debug\-brk\fR enable node's debugger breaking on the first line .TP \fB\-\-globals\fR allow the given comma\-delimited global [names] .TP \fB\-\-check\-leaks\fR check for global variable leaks .TP \fB\-\-interfaces\fR display available interfaces .TP \fB\-\-reporters\fR display available reporters .TP \fB\-\-compilers\fR :,... use the given module(s) to compile files .TP \fB\-\-inline\-diffs\fR display actual/expected differences inline within each string .TP \fB\-\-no\-exit\fR require a clean shutdown of the event loop: mocha will not call process.exit .SH "SEE ALSO" More info about mocha can be found in /usr/share/doc/mocha/Readme.md.gz .SH AUTHOR This man page was created by Leo Iannacone License GPLv3+: GNU GPL version 3 or later .