Mocha – A Flexible JavaScript Test Framework on Node
Mocha is a useful JavaScript test framework running on node and the 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. Mocha is a feature-rich Test framework available on GitHub under a MIT License.
Features of Mocha Framework:
javascript API for running tests
proper exit status for CI support etc
auto-detects and disables coloring for non-ttys
maps uncaught exceptions to the correct test case
async test timeout support
growl notification support
global variable leak detection
optionally run tests that match a regexp
auto-exit to prevent “hanging” with an active loop
easily meta-generate suites & test-cases
detects multiple calls to done()
use any assertion library you want
extensible reporting, bundled with 9+ reporters
extensible test DSLs or “interfaces”
arbitrary transpiler support (coffee-script etc)
Don't like to miss out any of our posts? Do Subscribe to our Feed