Mocha
Metrics as of , from the GitHub or GitLab API of each repository. Refreshed monthly.
What Mocha is
Mocha is a JavaScript test framework that runs on Node.js and in the browser. Tests run serially, and uncaught exceptions are mapped to the test cases that raised them. Supported interfaces include BDD (the default), TDD, Exports, QUnit and Require. Reporters include Spec (the default), JSON, HTML and Markdown. The framework supports asynchronous tests, hooks, global fixtures, root hook plugins, retries and timeouts. A parallel mode is also documented. The project is maintained by volunteers.
Written from the project's README, read , and its documentation (see sources).
- Category
- Unit testing and test runners
- License
- MIT
- Language
- JavaScript
- Changelog
- Releases on GitHub
Repository metrics
Status
activeLast commit within 90 days of the fetch date.Computed from the last commit date and the archive flag on the fetch date. See the status rules.
Alternatives
Listed unit testing and test runners tools, same primary language first, then by GitHub stars. Each line gives one fact from the tool's documentation where it differs from Mocha's, with its source. See also Mocha alternatives.
AVA: Languages for writing tests: JavaScript on Node.js; TypeScript definitions included. source: README
Jasmine: Languages for writing tests: JavaScript. source: README
Chai: Languages for writing tests: JavaScript (Node.js and browsers). source: README
tape: Languages for writing tests: JavaScript (Node.js and browsers). source: README
Jest: Languages for writing tests: JavaScript; TypeScript via Babel or ts-jest. source: README
GoogleTest: Languages for writing tests: C++ (the 1.18.x branch requires C++17). source: README
Testify: Languages for writing tests: Go. source: README
Catch2: Languages for writing tests: C++. source: README
Comparisons
Questions
Is Mocha open source?
Yes. Mocha is released under MIT, an OSI-approved license, as reported by the GitHub API on 2026-09-22.
Is Mocha maintained?
On 2026-09-22, the last commit to the default branch was on 2026-09-19, so the listed status is active. Rule: Last commit within 90 days of the fetch date.
How many GitHub stars does Mocha have?
22,897 stars on 2026-09-22, from the GitHub API. The number is refreshed at each monthly update.
What language is Mocha written in?
The repository's primary language, as reported by the GitHub API, is JavaScript.
Sources
- GitHub REST API: repository, read
- GitHub REST API: commits, read
- GitHub REST API: latest release, read
- GitHub REST API: contributors, read
- README, read
- Mocha documentation (mochajs.org), read