# mocaccino

> Mocha test runner as a Browserify plugin

Latest version **6.1.0** (published 2022-01-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install mocaccino
pnpm add mocaccino
yarn add mocaccino
bun add mocaccino
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 6.1.0 |
| Published | 2022-01-24 |
| First published | 2014-01-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=12 |
| Dependencies | 6 |
| Unpacked size | 11.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 22 |
| Author | Maximilian Antoni |
| Maintainers | fatso83, boneskull, mantoni, m90 |
| Keywords | mocha, runner, stream, browserify-plugin |

## Links

- npm: https://www.npmjs.com/package/mocaccino
- Repository: https://github.com/mantoni/mocaccino.js
- Issues: https://github.com/mantoni/mocaccino.js/issues
- npm.io page: https://npm.io/package/mocaccino

## Dependencies (6)

- [brout](https://npm.io/package/brout.md) ^1.3.0
- [mocha](https://npm.io/package/mocha.md) ^9.2.0
- [listen](https://npm.io/package/listen.md) ^1.0.0
- [resolve](https://npm.io/package/resolve.md) ^1.8.1
- [through2](https://npm.io/package/through2.md) ^4.0.2
- [supports-color](https://npm.io/package/supports-color.md) ^8.1.1

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 6.1.0 (latest) — 2022-01-24
- 6.0.0 — 2021-12-28
- 5.0.0 — 2021-05-23
- 4.1.2 — 2019-10-09
- 4.1.1 — 2019-03-12
- 4.1.0 — 2019-02-28
- 4.0.0 — 2018-11-19
- 3.0.0 — 2017-11-08
- 2.0.0 — 2017-02-25
- 1.9.0 — 2017-02-21
- 1.8.2 — 2016-02-01
- 1.8.1 — 2016-01-28
- 1.8.0 — 2016-01-19
- 1.7.0 — 2016-01-13
- 1.6.1 — 2015-10-27
- … 32 more at https://npm.io/package/mocaccino/versions

## README

# mocaccino

[![Node.js CI](https://github.com/mantoni/mocaccino.js/actions/workflows/test.yml/badge.svg)](https://github.com/mantoni/mocaccino.js/actions/workflows/test.yml)
[![SemVer]](https://semver.org)
[![License]](https://github.com/mantoni/mocaccino.js/blob/master/LICENSE)

[Mocha][] test runner as a [Browserify][] plugin.

## Install

```
npm install mocaccino --save-dev
```

## Real browser testing

This module is developed as part of [Mochify][] which allows you to run tests
with a headless browser, on a Selenium grid, in the cloud with SauceLabs or
generates a standalone HTML page to run the tests. The underlying modules can
also be used as Browserify plugins.

- [min-webdriver][] for Selenium and SauceLabs support
- [Consolify][] to generate a standalone HTML page

### Code coverage with node

Use the [Coverify][] transform and node:

```
$ browserify --bare -p [ mocaccino --node ] -t coverify test.js | node | coverify
```

## Usage

Mocaccino is a browserify plugin:

```
browserify -p [ mocaccino OPTIONS ]

where OPTIONS are:

  --reporter, -R  Mocha reporter to use, defaults to "tap"
  --grep          Mocha grep option
  --fgrep         Mocha fgrep option
  --invert        Mocha invert option
  --timeout, -t   Mocha timeout in milliseconds to use, defaults to 2000
  --ui, -U        Mocha user interface to use, defaults to "bdd"
  --yields, -y    Yield every N milliseconds, defaults to 250
  --node          If result is used in node instead of a browser
  --windowWidth   Overrides the window width, defaults to the current shells
                  window width or fall back to 80
  --no-colors     Disable colors (overrides color support detection)
  --colors        Enable colors (overrides color support detection)
  --mochaPath     Path to custom Mocha module
```

The `yields` option causes a tiny delay every N milliseconds to allow pending
I/O to happen. It's ignored if `--node` is given.

## Compatibility

- Node 12 or later
- Browserify 5.9 or later (since version 1.0.0)
- Browserify 4.x (before 1.0.0)

## License

MIT

[Build Status]: http://img.shields.io/travis/mantoni/mocaccino.js.svg
[SemVer]: http://img.shields.io/:semver-%E2%9C%93-brightgreen.svg
[License]: http://img.shields.io/npm/l/mocaccino.svg
[Mocha]: http://mochajs.org/
[Browserify]: http://browserify.org
[Mochify]: https://github.com/mantoni/mochify.js
[min-webdriver]: https://github.com/mantoni/min-webdriver
[Consolify]: https://github.com/mantoni/consolify
[Coverify]: https://github.com/substack/coverify

---
_Source: https://npm.io/package/mocaccino · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
