node package manager
Orgs are free. Discover, share, and reuse code in your team. Create a free org »

sauce-run

sauce-run

run your mocha tests on sauce

Build Status NPM version

Getting Started

Install the module with: npm install sauce-run --save

To run mocha tests in http://www.parro.it/requesty/dist/test.html with 3 browsers use:

 
var sauceRun = require('sauce-run');
 
sauceRun('http://www.parro.it/requesty/dist/test.html')
    .auth(process.env.REQUESTY_SAUCE_USERNAME, process.env.REQUESTY_SAUCE_ACCESS_KEY)
    .build(2)
    .browser('firefox', 'Windows 7' , '27')
    .browser('chrome', 'Windows 7' , '34')
    .browser('internet explorer', 'Windows 7' , '11')
    .run()
 
    .then(function(result){
        console.dir(result);
    })
    
    .catch(function(err){
        console.dir(err);
    });

Other stuff

  • documentation - maybe I will add documentation if you ask it. open an issue for this.
  • support - open an issue here.

License

MIT © 2014, Andrea Parodi