Mocha is a feature-rich JavaScript test framework running on Node.js and in 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. Hosted on GitHub. Mocha runs in the browser. Every release of Mocha will have new builds of ./mocha.js and ./mocha.css for use in the browser. Mocha is the most-depended-upon module on npm and Mocha is an independent open-source project, maintained exclusively by volunteers. Given Mocha’s use of function expressions to define suites and test cases, it’s straightforward to generate your tests dynamically. No special syntax is required — plain ol’ JavaScript can be used to achieve functionality similar to “parameterized” tests, which you may have seen in other frameworks.

Features

  • Simple async support, including promises
  • Auto-detects and disables coloring for non-TTYs
  • Global variable leak detection
  • Optionally run tests that match a regexp
  • Node native ES modules support
  • Auto-exit to prevent “hanging” with an active loop

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow Mocha

Mocha Web Site

You Might Also Like
An All-in-One EMR Exclusively for Therapy and Rehab. Icon
An All-in-One EMR Exclusively for Therapy and Rehab.

Electronic Medical Records Software

Managing your therapy and rehab practice is a time-consuming process. You spend hours on paperwork, billing, scheduling, and more. Raintree’s Therapy & Rehab EHR is here to help you manage your practice more efficiently. With our all-in-one solution, you’ll get the tools you need to streamline your therapy and rehab practice, improve patient care, and get back to doing what you love.
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Mocha!

Additional Project Details

Operating Systems

Windows

Programming Language

JavaScript

Related Categories

JavaScript Software Testing Tool, JavaScript Frameworks, JavaScript Test Frameworks

Registered

2021-02-17