<commit_before>karma-webdriver-launcher
========================

A plugin for Karma 0.9.2 to launch WebDriver instances

## Usage

This is to build and use with our forked copy of [Karma] which has [CustomLauncherPullRequest] applied.
Requires grunt-cli to be installed

```bash
$ git clone git://github.com/hindsightsoftware/karma.git -b webdriver && cd karma
$ npm install
$ grunt build
$ npm install -g
$ npm install -g git://github.com/hindsightsoftware/karma-webdriver-launcher.git
```

Then in your karma.conf.js file (e.g. using SauceLabs Connect - you need to have a scout tunnel open for this to work!):

```js
module.exports = function(karma) {

  var webdriverConfig = {
    url: 'ondemand.saucelabs.com',
    port: 80,
    user: 'username',
    key: 'saucelabs-api-key'
  }

  karma.defineLauncher('IE7', 'WebDriver', {
    config: webdriverConfig,
    spec: {
      browserName: 'internet explorer',
      version: '7',
      platform: 'Windows XP',
      tags: ['IE7', 'Windows XP'],
      name: 'IE7:Windows XP'
    }
  });

  ...

    karma.configure({

      ...

      browsers: ['IE7'],

      ...

    });


```

and then use Karma as normal :)

[Karma]: https://github.com/karma-runner/karma
[CustomLauncherPullRequest]: https://github.com/karma-runner/karma/pull/533
<commit_msg>chore: Update example config to the new format for custom launchers<commit_after>karma-webdriver-launcher
========================

A plugin for Karma 0.9.3 to launch Remote WebDriver instances

## Installation

```bash
$ npm install -g git://github.com/hindsightsoftware/karma-webdriver-launcher.git
```

## Usage

In your karma.conf.js file (e.g. using SauceLabs Connect - you need to have a scout tunnel open for this to work!):

```js
module.exports = function(karma) {

  var webdriverConfig = {
    url: 'ondemand.saucelabs.com',
    port: 80,
    user: 'username',
    key: 'saucelabs-api-key'
  }


  ...

    karma.set({

      ...
	  
      customLaunchers: {
        'IE7': {
          base: 'WebDriver',
		  config: webdriverConfig,
		  spec: {
			browserName: 'internet explorer',
			platform: 'Windows XP',
			version: '7',
			name: 'Karma'
		  }
	    }
      },	  

      browsers: ['IE7'],

      ...

    });


```


{'fraction_non_alphanumeric': 0.15436241610738255, 'fraction_numerical': 0.009395973154362415, 'mean_word_length': 2.8485370051635113, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5743733', 'n_tokens_mistral': 822, 'n_tokens_neox': 739, 'n_words': 199}