mocha
JavaScript test framework
TLDR
Run tests
$ mocha
Run specific file$ mocha [test/spec.js]
Watch mode$ mocha --watch
Run with grep$ mocha --grep "[pattern]"
Reporter style$ mocha --reporter [spec]
Recursive tests$ mocha --recursive
SYNOPSIS
mocha [options] [files]
DESCRIPTION
mocha is a JavaScript test framework. It runs in Node.js and browsers.
The tool provides BDD/TDD testing styles. Supports async tests and many reporters.
PARAMETERS
FILES
Test files to run.--watch
Watch for changes.--grep PATTERN
Filter tests.--reporter NAME
Output format.--recursive
Include subdirectories.--timeout MS
Test timeout.--help
Display help information.
CAVEATS
Node.js required. Requires assertion library. Configuration via .mocharc.
HISTORY
Mocha was created by TJ Holowaychuk as a feature-rich JavaScript test framework.

