mocha
JavaScript test framework
TLDR
Run tests
$ mocha
Run specific filecopy
$ mocha [test/spec.js]
Watch modecopy
$ mocha --watch
Run with grepcopy
$ mocha --grep "[pattern]"
Reporter stylecopy
$ mocha --reporter [spec]
Recursive testscopy
$ mocha --recursive
copy
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.