← All repos

rocha

Runs Mocha unit tests but randomizes their order

mocharandomtesting
Browse cluster: Operating Systems and Low-Level Systems
190commits
5contributors
1languages

Tech stack & purpose

Rocha is a test runner for Mocha that randomizes the execution order of unit tests to help expose problems caused by test interdependencies, shared state, or environmental pollution. Built as an npm package that works like Mocha, it shuffles tests within each suite and saves the execution order when tests fail, allowing developers to recreate and debug failures. The project is authored by Gleb Bahmutov and requires Node.js version 4 or higher.

Languages

JavaScript
100.0%

Contributors