JSPM

  • Created
  • Published
  • Downloads 7139
  • Score
    100M100P100Q125432F
  • License MIT

browser testing harness for mocha tests

Package Exports

  • zuul

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (zuul) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

zuul

Zuul is a test runner/harness to make running your mocha tests in a browser easier. Just point it at your mocha test files and let zuul consume them!

zuul server

If you want to see the output of your mocha tests in a pretty browser window use zuul with the server option.

$ zuul --server 9000 /path/to/your/tests

Zuul will start a server on localhost:9000 which you can visit to get awesome html output (courtesy of mocha).

html

headless zuul

If you just want to run your tests in a headless environment courtesy of mocha-phantomjs and phantomjs, zuul will oblige!

$ zuul /path/to/your/tests

headless

finding tests

You can specify either a specific javascript file(s) or a directory(s) to zuul. If you specify a directory, zuul will load all of the .js files in that directory.

mocha.opts

If test/mocha.opts is available relative to your launch directory, then zuul will incorporate those options into the mocha setup.

install

$ npm install -g zuul

credits

This probject is just a tiny tool. The real credit goes to these projects.