Socket
Book a DemoInstallSign in
Socket

mocha-sauce

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mocha-sauce

Tools for running mocha tests on saucelabs

latest
Source
npmnpm
Version
0.0.3
Version published
Maintainers
1
Created
Source

mocha-sauce

Tools for running mocha tests on saucelabs. You can use this programatically or as a CLI.

Wiring up your tests

To wire up your test you'll need to include the browser.js file that's in this repository. I suggest you rename it something like mocha-sauce.js and then add a script tag:

<script src="mocha-sauce.js"></script>

Then modify your html file for tests so that mocha.run() is replace with mochaSauce(mocha).run(). That way the stream of results will be made available to this client.

CLI

Usage: mocha-sauce [options]

Options:

-h, --help output usage information
-V, --version output the version number
-B, --browser [name] The browser to test on
-I, --iteration [number] The browser version to test with
-O, --operating-system [name] The operating sytem to test with
-L, --list [by] List available versions/operating-systems/browsers rather than actually testing them

You can

Keywords

mocha

FAQs

Package last updated on 11 Dec 2012

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts