# zuul-mp

> Runs your mocha tests with zuul and phantomjs locally or on a build server.

Latest version **0.2.1** (published 2014-01-06) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install zuul-mp
pnpm add zuul-mp
yarn add zuul-mp
bun add zuul-mp
```

Provides the command `zuul-mp`.

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 0.2.1 |
| Published | 2014-01-06 |
| First published | 2013-11-12 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 6 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Thorsten Lorenz |
| Maintainers | thlorenz |
| Keywords | zuul, phantom, phantomjs, mocha, test, local, travis |

## Links

- npm: https://www.npmjs.com/package/zuul-mp
- Repository: https://github.com/thlorenz/zuul-mp
- Issues: https://github.com/thlorenz/zuul-mp/issues
- npm.io page: https://npm.io/package/zuul-mp

## Dependencies (6)

- [zuul](https://npm.io/package/zuul.md) ~1.0.10
- [mocha](https://npm.io/package/mocha.md) ~1.14.0
- [phantomjs](https://npm.io/package/phantomjs.md) ~1.9.2-4
- [asyncreduce](https://npm.io/package/asyncreduce.md) ~0.1.4
- [resolve-bin](https://npm.io/package/resolve-bin.md) ~0.1.0
- [mocha-phantomjs](https://npm.io/package/mocha-phantomjs.md) ~3.1.6

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.2.1 (latest) — 2014-01-06
- 0.2.0 — 2013-12-18
- 0.1.4 — 2013-12-05
- 0.1.1 — 2013-11-12
- 0.1.0 — 2013-11-12

## README

# zuul-mp [![build status](https://secure.travis-ci.org/thlorenz/zuul-mp.png)](http://travis-ci.org/thlorenz/zuul-mp)


## DEPRECATED

[zuul](https://github.com/defunctzombie/zuul) added a `--phantom` flag which provides the functionality that zuul-mp is meant to provide.

Please use `zuul --phantom` instead.

Runs your mocha tests with zuul and phantomjs locally or on a build server.

![zuul-mp](https://github.com/thlorenz/zuul-mp/raw/master/assets/zuul-mp.gif)

## Installation

    npm install zuul-mp

## Usage

Invoke `zuul-mp` with the same arguments you would pass to [zuul](https://github.com/defunctzombie/zuul).

You can also include arguments for [mocha-phantomjs](https://github.com/metaskills/mocha-phantomjs#usage). 

#### Examples

```sh
zuul-mp test.js

# Override reporter
zuul-mp test.js --reporter list

# Override default port
zuul-mp test.js --local 3100
```

Here `--reporter list` is picked up by mocha-phantomjs and all other arguments by zuul.

Additionally the [`.zuul.yml`](https://github.com/defunctzombie/zuul/wiki/Zuul.yml) is picked up and treated the exact
same way as it is when running zuul directly.

## API

You can use zuul-mp's main function directly to launch it from other tools.

<!-- START docme generated API please keep comment here to allow auto update -->
<!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN docme TO UPDATE -->

<div class="jsdoc-githubify">
<section>
<article>
<div class="container-overview">
<dl class="details">
</dl>
</div>
<dl>
<dt>
<h4 class="name" id="zuulmp"><span class="type-signature"></span>zuulmp<span class="signature">(args, cwd, cb)</span><span class="type-signature"></span></h4>
</dt>
<dd>
<div class="description">
<p>Starts up a zuul server and runs mocha-phantomjs against it.</p>
</div>
<h5>Parameters:</h5>
<table class="params">
<thead>
<tr>
<th>Name</th>
<th>Type</th>
<th class="last">Description</th>
</tr>
</thead>
<tbody>
<tr>
<td class="name"><code>args</code></td>
<td class="type">
<span class="param-type">Array.&lt;String></span>
</td>
<td class="description last"><p>arguments passed to zuul and phantomjs</p></td>
</tr>
<tr>
<td class="name"><code>cwd</code></td>
<td class="type">
<span class="param-type">String</span>
</td>
<td class="description last"><p>working directory to be used for zuul and mocha-phantomjs</p></td>
</tr>
<tr>
<td class="name"><code>cb</code></td>
<td class="type">
<span class="param-type">function</span>
</td>
<td class="description last"><p>called back with eventual error and the exit code (0 if all went good)</p></td>
</tr>
</tbody>
</table>
<dl class="details">
<dt class="tag-source">Source:</dt>
<dd class="tag-source"><ul class="dummy">
<li>
<a href="https://github.com/thlorenz/zuul-mp/blob/master/index.js">index.js</a>
<span>, </span>
<a href="https://github.com/thlorenz/zuul-mp/blob/master/index.js#L54">lineno 54</a>
</li>
</ul></dd>
</dl>
</dd>
</dl>
</article>
</section>
</div>

*generated with [docme](https://github.com/thlorenz/docme)*
<!-- END docme generated API please keep comment here to allow auto update -->

## License

MIT

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