Top AI Repos — open-source AI, indexed and scored
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
Top AI Repos tracks AI repositories on GitHub and answers two different questions about each one: is it moving right now, and would you bet a product on it.
☕️ TDD with Browserify, Mocha, Headless Chrome and WebDriver
| Date | Stars |
|---|---|
| 2026-07-24 | 348 |
| 2026-07-25 | 348 |
| 2026-07-28 | 348 |
| 2026-07-30 | 348 |
| 2026-08-06 | 348 |
Today
— stars today
This week
— stars this week
This month
— stars this month
Momentum
0.0
growth rate 0.00%/day
# [](https://github.com/mantoni/mochify.js/)
> TDD with Browserify, Mocha, Headless Chrome and WebDriver
[](https://github.com/mantoni/mochify.js/actions/workflows/test.yml)
[![SemVer]](http://semver.org)
[![License]](https://github.com/mantoni/mochify.js/blob/master/LICENSE)
Browserifies `./test/*.js`, decorated with a [Mocha test runner][], runs it in
Headless Chrome and passes the output back to your console. Cleans up your
stack traces by mapping back to the original sources and removing lines from
the test framework.
## Features
- Run tests in Headless Chrome
- Supports watch-mode with pre-loaded Chrome page (with `--watch`)
- Use the Chrome developer tools for debugging ([docs](#debugging))
- Run builds in CI ([docs](#continuous-integration))
- Load tests in the context of a file or URL (with `--url`)
- Optional built-in HTTPS server (with `--https-server`)
- Run tests in real browsers
- Supports [SauceLabs][] ([docs](#saucelabs-setup))
- Supports [Appium][] ([docs](#appium-setup))
- Supports [BrowserStack][] ([docs](#browserstack-setup))
- Supports [WebDriver][] ([docs](#selenium-webdriver-setup))
- Code coverage options:
- Using [nyc][] ([docs](#code-coverage-with-nyc))
- Using [coverify][] (with `--cover`)
- Works with most Mocha reporters ([docs](#reporters))
- Exposes a Node API ([docs](#api))
## Install
This will install Mochify in your current project and add it to the
`devDependencies`:
```
npm install mochify --save-dev
```
[Puppeteer][] will download a recent version of Chromium. If you want to skip
the download and provide your own executable instead, define the
`PUPPETEER_SKIP_CHROMIUM_DOWNLOAD` environment variable or add this to your
`package.json`:
```json
{
"config": {
"puppeteer_skip_chromium_download": true
}
}
```
For proxy settings and other environment variables, see the [Puppeteer
documentation][puppeteer-envs].
## Usage
Configure `"scripts"` in your `package.json` so that your project ships with
the testing infrastructure:
```json
{
"scripts": {
"test": "mochify",
"watch": "mochify --watch",
"webdriver": "mochify --wd"
}
}
```
To run from the command line, either run `npm install mochify -g` to have
`mochify` available globally, or from within your project directory run:
```
node_modules/.bin/mochify
```
## Debugging
Place a `debugger` statement in your source code and run `mochify --debug`.
This will open a Chromium instance with developer tools opened and it will
break at the `debugger` statement.
## Command line options
- `--watch` or `-w` use [watchify][] to watch your files and run the tests on
change.
- `--reporter` or `-R` changes the Mocha reporter (see further down).
- `--grep` sets the Mocha grep option.
- `--invert` sets the Mocha grep `invert` flag.
- `--recursive` include sub directories.
- `--ui` or `-U` changes the Mocha UI. Defaults to `'bdd'`.
- `--timeout` or `-t` changes the Mocha timeout. Defaults to `2000`.
- `--colors` explicitly enables color output.
- `--no-colors` explicitly disables color output.
- `--outfile` or `-o` writes output to this file. If unspecified, mochify
prints to stdout.
- `--require` or `-r` requires the given module.
- `--debug` launches a non-headless chromium instance with developer tools.
- `--chrome` uses a specific Chrome executable. If not specified, the built-in
chromium is used.
- `--ignore-ssl-errors` tells Chrome whether or not to ignore ssl certificate
issues (default is false)
- `--allow-chrome-as-root` allows Chrome to run as root
- `--dumpio` passed to puppeteer to dump all IO
- `--https-server` launches an HTTPS server on the specified port. If no port is given a random available port will be used.
- `--viewport-width` tells Chrome to use a certain width for its viewport.
- `--viewport-height` tells Chrome to use a certain height for its viewExcerpt of 12,992 characters
Read on GitHubWould you bet a product on this? Bounded 0–100 and slow moving.
matched fp:8ab8b850385a84c3, topic:testing
matched fp:8ab8b850385a84c3, topic:puppeteer