# testcafe-reporter-sauce-json

This is the **sauce-json** reporter plugin for [TestCafe](http://devexpress.github.io/testcafe).

## Install

```
npm install testcafe-reporter-sauce-json
```

## Usage

When you run tests from the command line, specify the reporter name by using the `--reporter` option:

```
testcafe chrome 'path/to/test/file.js' --reporter sauce-json
```

or

```
testcafe chrome 'path/to/test/file.js' --reporter "sauce-json:./path/to/output.report.json
```


When you use API, pass the reporter name to the `reporter()` method:

```js
testCafe
    .createRunner()
    .src('path/to/test/file.js')
    .browsers('chrome')
    .reporter('sauce-json') // <-
    .run();
```
