Navigation

Home
Search
Submit A Resource
Contact Us
About Functionn

Subscription Options


Subscribe By Email (265+)


Lists


Archives

Nov 12, 2012

Author: Hirvesh Posted At: 11/12/2012 Tags: , , , , , , , , , , , , , ,

Mocha - A Feature-Rich JavaScript Test Framework For Node.js And The Browser

Share:

Mocha is a feature-rich JavaScript test framework running on Node.js 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.


Features

  • Browser support
  • Simple async support
  • Test coverage reporting
  • String diff support
  • 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
  • Test-specific timeouts
  • Growl notification support
  • Reports test durations
  • Highlights slow tests
  • File watcher 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
  • Mocha.opts file support
  • Clickable suite titles to filter test execution
  • Node debugger support
  • Detects multiple calls to done()
  • Use any assertion library you want
  • Extensible reporting, bundled with 9+ reporters
  • Extensible test dsls or “interfaces”
  • Before, after, before each, after each hooks
  • Arbitrary transpiler support (coffee-script etc)
  • Textmate bundle

Requirements: None
Demo: http://visionmedia.github.com/mocha/
License: MIT License

Daily Posts, Be Updated, Subscribe:

Want Free Web Resources? Enter Your Email And We'll Send It To You - Daily! (265+ Subscribers)

Yup, it's that straight forward! Enter your email address below and we'll send you the latest web resources to your inbox, everyday. We don't do spam. Ever.

Trending Posts On Functionn This Week

Share:

Other Interesting Resources:

0 comments:

Post a Comment

 


Recent Posts

Popular Categories



Popular Components



Popular Licenses