# mocha-cloud

> Mocha tests in the cloud with Saucelabs

Latest version **0.1.0** (published 2013-03-19) · 0 weekly downloads

## Install

```sh
npm install mocha-cloud
pnpm add mocha-cloud
yarn add mocha-cloud
bun add mocha-cloud
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2013-03-19 |
| First published | 2012-11-13 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+2 in 1 direct dependencies) |
| Install scripts | no |
| Author | TJ Holowaychuk |
| Maintainers | tjholowaychuk |
| Keywords | mocha, test, tdd, bdd, saucelabs, selenium, cloud, testing |

## Links

- npm: https://www.npmjs.com/package/mocha-cloud
- npm.io page: https://npm.io/package/mocha-cloud

## Dependencies (3)

- [wd](https://npm.io/package/wd.md) 0.0.26
- [batch](https://npm.io/package/batch.md) ~0.2.1
- [debug](https://npm.io/package/debug.md) ~0.7.0

## Alternatives

- [duck](https://npm.io/package/duck.md) — 4.2M weekly downloads
- [ava](https://npm.io/package/ava.md) — 560.2K weekly downloads
- [storybook-addon-module-mock](https://npm.io/package/storybook-addon-module-mock.md) — 71.7K weekly downloads
- [@ethereum-waffle/mock-contract](https://npm.io/package/@ethereum-waffle/mock-contract.md) — 40.0K weekly downloads
- [aws-elasticsearch-connector](https://npm.io/package/aws-elasticsearch-connector.md) — 37.4K weekly downloads

## Recent versions

- 0.1.0 (latest) — 2013-03-19
- 0.0.1 — 2012-11-13

## README

# mocha-cloud

  Mocha testing in the cloud with [SauceLabs](https://saucelabs.com). If you plan
  on running the tests from the terminal check out the terminal [grid view](https://github.com/visionmedia/mocha-cloud-grid-view).

  ![](https://a248.e.akamai.net/camo.github.com/5de44b460b7f81c02497bec587a1b53832150c28/687474703a2f2f662e636c2e6c792f6974656d732f31653043304c3374317831753377334a323033752f6d6f6368612d677269642d7061737365732e706e67)

## Installation

  npm server client:

```
$ npm install mocha-cloud
```

  If you use [component](https://github.com/component/component)
  you may simply execute the following to get the client script:

```
$ component install visionmedia/mocha-cloud
```

  Otherwise use the ./build/build.js file,
  and pass `mocha.run()` to the cloud function
  allowing it to attach event handlers:

```js
cloud(mocha.run());
```

## Example

```js

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

---
_Source: https://npm.io/package/mocha-cloud · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
