Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 9de4443e93
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 51 lines (34 sloc) 1.441 kb

mocha-cloud

Mocha testing in the cloud with SauceLabs. If you plan on running the tests from the terminal check out the terminal grid view.

Installation

NPM server client:

$ npm install mocha-cloud

Add client.js to your test scripts, and call mochaCloud(mocha).run() to the function, allowing it to listen on mocha.Runner events.

Alternatively if you use component you may simply:

$ component install visionmedia/mocha-cloud

Example

var reporters = require('mocha').reporters;
var Cloud = require('mocha-cloud');

var cloud = new Cloud('your project name', 'username', 'access key');
cloud.browser('ipad', '6', 'Mac 10.8');
cloud.url('http://localhost:3000/test/');

cloud.on('init', function(browser, runner){
  console.log('  init : %s %s', browser.browserName, browser.version);
  new reporters['Spec'](runner);
});

cloud.on('start', function(browser){
  console.log('  start : %s %s', browser.browserName, browser.version);
});

cloud.start();

License

MIT

Something went wrong with that request. Please try again.