开发者社区> 镜像站> NPM> zuul-mp
zuul-mp

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

Please use 'zuul --phantom' instead
Last updated 7 years ago by thlorenz .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install zuul-mp 
SYNC missed versions from official npm registry.

zuul-mp build status

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

zuul-mp

Installation

npm install zuul-mp

Usage

Invoke zuul-mp with the same arguments you would pass to zuul.

You can also include arguments for mocha-phantomjs.

Example

zuul-mp --local 3100 --reporter list -- test.js

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

Additionally the .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.
 *
 * @name zuulmp
 * @function
 * @param args {Array[String]} arguments passed to zuul and phantomjs
 * @param cwd {String} working directory to be used for zuul and mocha-phantomjs
 * @param cb {Function} called back with eventual error and the exit code (0 if all went good)
 */

License

MIT

Current Tags

  • 0.2.1                                ...           latest (7 years ago)

5 Versions

  • 0.2.1 [deprecated]           ...           7 years ago
  • 0.2.0 [deprecated]           ...           7 years ago
  • 0.1.4 [deprecated]           ...           7 years ago
  • 0.1.1 [deprecated]           ...           7 years ago
  • 0.1.0 [deprecated]           ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 1
This Month 1
Last Day 1
Last Week 0
Last Month 0
Dependencies (6)
Dev Dependencies (2)
Dependents (1)