Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/thlorenz/zuul-mp
Runs your mocha tests with zuul and phantomjs locally or on a build server.
https://github.com/thlorenz/zuul-mp
Last synced: 26 days ago
JSON representation
Runs your mocha tests with zuul and phantomjs locally or on a build server.
- Host: GitHub
- URL: https://github.com/thlorenz/zuul-mp
- Owner: thlorenz
- License: mit
- Created: 2013-11-12T20:08:43.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2014-01-06T17:53:20.000Z (almost 11 years ago)
- Last Synced: 2024-10-23T06:12:54.107Z (2 months ago)
- Language: JavaScript
- Homepage: https://github.com/thlorenz/zuul-mp
- Size: 261 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
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.
zuulmp(args, cwd, cb)Starts up a zuul server and runs mocha-phantomjs against it.
Parameters:
Name
Type
Description
args
Array.<String>
arguments passed to zuul and phantomjs
cwd
String
working directory to be used for zuul and mocha-phantomjs
cb
function
called back with eventual error and the exit code (0 if all went good)
*generated with [docme](https://github.com/thlorenz/docme)*
## License
MIT