-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Home
Andifeind edited this page Sep 4, 2016
·
94 revisions
- Spies
- Shared Behaviours
- Developing Mocha
- Conditionally failing tests in afterEach() hooks
- Third party reporters
- Third party uis
- Tagging
- Using mocha programmatically
- Detecting global leaks
- Assertion counting
- Growl Notifications
##Add-ons
- should.js - BDD style shown throughout these docs
- chai - expect(), assert() and should style assertions
- expect.js - expect() style assertions
- expectations - Jasmine-style expect()
- unit.js - simple, fluent assertions
- unexpected - extensible BDD assertion toolkit
- inspect.js - modern BDD style assertion library
- sinon.js - Test spies, stubs and mocks for JavaScript.
- simple-mock - Super simple mocks, stubs, and spies with 1-step sandbox restore.
- nock - HTTP mocking and expectations library.
- mocha-suit - OOP like mocha wrapper
- mocha-clean - Cleaner stack traces
- mocha-matrix - concise matrix reporter for the browser
- mocha-cakes - BDD acceptance tests, Cucumber Given/When/Then stories add-on for Mocha.
- mocha.parallel - Run async mocha specs in parallel.
- lcov-reporter -- lcov reporter
- text-cov -- Text summary in console of code coverage
- JSCovReporter In browser Javascript coverage reporter using CoverJS instrumented code.
- qunit-mocha-ui - A Mocha interface that more closely replicates the QUnit API, including QUnit's assertions.
- mocha-qunit-ui - Mocha interface that is API-compatible with QUnit
- mocha-ui-tsexports - Mocha interface that enables tests written using TypeScript classes
-
xunit-file - A Mocha reporter similar to
xunit
, but writes to a file (excludes allconsole.log
output that breaks the xml). - WebConsole-reporter - A Mocha reporter that displays reports in browser console. Works faster than html reporter and provides clickable stack traces.
- mocha-slow-reporter - Outputs a profile-like tree of the tests/hooks to help you fix test-suite slowness.
- mocha-unfunk-reporter - An alternate to the default Spec-style reporter for improved usability and added compatibility features for use in various low-tech scenarios. Does not use console cursor tricks or positional ANSI codes.
- mocha-fivemat-reporter - Reporter format inspired by fivemat. Better signal vs noise ratio for larger test suites.
- mocha-teamcity-reporter - Teamcity reporter for Mocha.
- loca - Reporter in your browser's console.
- mocha-retry - Allows you to retry a test if it fails using the bdd ui. Useful on unstable tests, like those that drive a browser.
- child-reporter - Reporter, that create a child process with stdout to console. Useful for testing modules that redirect stdout to /dev/null or logs
- report-viewer - Cli for piping a unit test result directly into your browser. Combines the debug level of the console with the pretty output of a browser ui.
- mocha-typescript - TypeScript OOP, decorators based, mocha test interface.
- phantom-mochachino -- functional testing utility for running mocha tests with phantomjs
- mocha-phantomjs -- run mocha tests with phantomjs
- mocha-cloud -- run mocha tests on SauceLabs
- mocha-cloud-grid-view -- terminal grid view for mocha-cloud
- mochify -- run browserified mocha tests with phantomjs, selenium webdriver and saucelabs
- mocha's out of the box html-cov reporter
- cover
- istanbul
- blanket
- mochify -- coverage for node and phantomjs using browserify and coverify
- Examples
- Konacha -- Ruby on Rails mocha integration
- Teaspoon -- Ruby on Rails mocha integration
- mocha.js-haxe -- Haxe mocha integration
- Yadda -- Run BDD feature files with mocha