mocha-express
v0.5.3
Published
Minimal test runner for Mocha in the browser
Maintainers
Readme
mocha-express
Browser-based JavaScript testing with Mocha over HTTP that runs on any browser and/or device.
Key Features:
- Built on Mocha and Chai for familiar syntax and behavior.
- Fast CI/CLI test execution via Chrome DevTools Protocol (CDP).
- Watch mode for instant feedback during development.
- Code coverage via Istanbul.
Installation
Install as a dev dependency:
npm install --save-dev mocha-expressRunning Tests
Run all of your tests once in Chrome...
mocha-expressWatch Mode
For fast feedback during development, enable watch mode to re-run tests whenever your code changes...
mocha-express --watchCode Coverage
Generate coverage reports using Istanbul:
mocha-express --coverageReports are saved in the coverage/ directory, ready for CI integration or local inspection.
