Skip to content
This repository

Add-ons

Assertion Libraries

  • should.js - BDD style shown throughout these docs
  • chai - expect(), assert() and should style assertions
  • expect.js - expect() style assertions

Mocks, Stubs, & Spies

  • sinon.js - Test spies, stubs and mocks for JavaScript.

Interfaces & Reporters

  • mocha-cakes - BDD acceptance tests, Cucumber Given/When/Then stories add-on for Mocha.
  • lcov-reporter -- lcov reporter
  • JSCovReporter In browser Javascript coverage reporter using CoverJS instrumented code.

Headless testing

Test coverage

  • mocha's out of the box html-cov reporter
  • cover

Frameworks

Mocha Examples

Express | Connect

SuperAgent | WebSocket.io | Mocha

Something went wrong with that request. Please try again.