Mocha was written to quickly execute asynchronous tests for JS code, allowing developers to detect and fix problems in their code.
The Mocha testing toolkit has managed to gain quite a following thanks to its heavily Node.js integration, accurate reporting style, well-organized results page and support for mapping uncaught exceptions to the appropriate line in the test cases.
Utilizing such a tool is very recommended by industry experts, mainly because it allows programmers a means to find and prevent bugs from reaching production environments.
Mocha is inspired by other open-source projects like: QUnit, JSpec (not supported anymore), and Expresso.
What is new in this release:
- Load mocha.opts in _mocha for now.
What is new in version 2.3.3:
- Load mocha.opts in _mocha for now.
What is new in version 2.2.5:
- Load mocha.opts in _mocha for now.
What is new in version 2.2.4:
- Load mocha.opts in _mocha for now.
What is new in version 2.1.0:
- Removed:
- Support for Node 0.6.x, 0.4.x
- Fixes:
- Landing reporter with non ANSI characters
- HTML reporter - preserve query params when navigating to suites/tests
- JSON stream reporter add error message to failed test
- Fixes for visionmedia -> mochajs
- Use stdio, fixes node deprecation warnings
What is new in version 1.20.1:
- Update: should dev dependency to ~4.0.0
What is new in version 1.18.2:
- Fixed:
- HTML runner was prevented from using #mocha as the default root el.
What is new in version 1.18.0:
- Added:
- Promise support
- Named before/after hooks
What is new in version 1.17.1:
- Fixed:
- Expected messages in should.js.
- Expected errno global in node versions < v0.9.11.
- Unreliable checkGlobals optimization.
What is new in version 1.16.2:
- Fixed:
- Couple issues with IE 8
- Issue running the Xunit reporter in browsers
- Issue with Firefox < 3.5
What is new in version 1.15.1:
- Recompiled for missed changes from the last release.
What is new in version 1.13.0:
- Added:
- Sort test files with --sort
- Update:
- diff dependency to 1.0.7
- Glob dependency to 3.2.3
- Fixed:
- diffs show whitespace differences
- Improved global leaks
- Firefox window.getInterface leak
What is new in version 1.11.0:
- Added --prof support
- Added --harmony support
- Added --harmony-generators support
- Added "Uncaught " prefix to uncaught exceptions
- Added web workers support
- Added suite.skip()
- Changed to output # of pending / passing even on failures
Requirements:
- JavaScript enabled on client side
- Node.js 0.8 or higher
Comments not found