0.1.0 • Published 12 years ago
mocha-cloud v0.1.0
mocha-cloud
Mocha testing in the cloud with SauceLabs.
Links
- Terminal grid view for results
Installation
NPM server client:
$ npm install mocha-cloud
Add ./client.js
to your test scripts, and pass 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 Cloud = require('mocha-cloud');
var cloud = new Cloud('your project name', 'username', 'access key');
cloud.browser('iphone', '5.0', 'Mac 10.6');
cloud.browser('ipad', '6', 'Mac 10.8');
cloud.url('http://localhost:3000/test/');
cloud.on('init', function(browser){
console.log(' init : %s %s', browser.browserName, browser.version);
});
cloud.on('start', function(browser){
console.log(' start : %s %s', browser.browserName, browser.version);
});
cloud.on('end', function(browser, res){
console.log(' end : %s %s : %d failures', browser.browserName, browser.version, res.failures);
});
cloud.start();
License
MIT