<commit_before># Testium

Testium is a testing platform focused on providing a simple,
but effective,
platform for testing your code
in different browsers (via Selenium)
and headlessly (via PhantomJS).
It uses [webdriver-http-sync](https://github.com/groupon/webdriver-http-sync)
in order to communicate
(using the WebDriver protocol)
with a selenium server.

Keep up to date with changes
by checking the
[releases](https://github.com/groupon-testium/testium/releases).

[Demo Video](https://www.youtube.com/watch?v=qmPlM_SqZes)

## Example

A simple test using [assertive](https://github.com/groupon/assertive)
and [mocha](http://mochajs.github.io/mocha/).

```coffeescript
injectBrowser = require 'testium/mocha'
assert = require 'assertive' # or whatever assert library you prefer

describe 'browse', ->
  before injectBrowser()

  before ->
    @browser.navigateTo '/my-account'
    @browser.assert.httpStatus 200

  it 'is serving up gzipped content', ->
    assert.equal 'gzip', @browser.getHeader('Content-Encoding')
```

For help debugging your tests,
check out
[the wiki page](https://github.com/groupon/testium/wiki/Debugging-Your-Tests).

## Getting Started

Install Testium by running `npm install --save testium`.

Then, you can specify additional configuration, like so!

```
; .testiumrc
; defaults to false, `npm start`s the app
launch = true

[mocha]
; defaults to 20 seconds
timeout = 10000
; defaults to 2 seconds
slow = 2500
```

Run your tests with mocha: `mocha test/integration`

### Detailed Setup

Testium might require that you install some
system-level libraries.

**required**
<commit_msg>remove link to dead wiki<commit_after># Testium

Testium is a testing platform focused on providing a simple,
but effective,
platform for testing your code
in different browsers (via Selenium)
and headlessly (via PhantomJS).
It uses [webdriver-http-sync](https://github.com/groupon/webdriver-http-sync)
in order to communicate
(using the WebDriver protocol)
with a selenium server.

Keep up to date with changes
by checking the
[releases](https://github.com/groupon-testium/testium/releases).

[Demo Video](https://www.youtube.com/watch?v=qmPlM_SqZes)

## Example

A simple test using [assertive](https://github.com/groupon/assertive)
and [mocha](http://mochajs.github.io/mocha/).

```coffeescript
injectBrowser = require 'testium/mocha'
assert = require 'assertive' # or whatever assert library you prefer

describe 'browse', ->
  before injectBrowser()

  before ->
    @browser.navigateTo '/my-account'
    @browser.assert.httpStatus 200

  it 'is serving up gzipped content', ->
    assert.equal 'gzip', @browser.getHeader('Content-Encoding')
```


## Getting Started

Install Testium by running `npm install --save testium`.

Then, you can specify additional configuration, like so!

```
; .testiumrc
; defaults to false, `npm start`s the app
launch = true

[mocha]
; defaults to 20 seconds
timeout = 10000
; defaults to 2 seconds
slow = 2500
```

Run your tests with mocha: `mocha test/integration`

### Detailed Setup

Testium might require that you install some
system-level libraries.

**required**

{'fraction_non_alphanumeric': 0.112, 'fraction_numerical': 0.0096, 'mean_word_length': 4.632432432432433, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 9, 'lorem ipsum': 0, 'www.': 2, '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': '3643396', 'n_tokens_mistral': 1038, 'n_tokens_neox': 938, 'n_words': 322}