UNPKG

1.74 kBMarkdownView Raw
1WDIO Spec Reporter
2==================
3
4[![Build Status](https://travis-ci.org/webdriverio/wdio-spec-reporter.svg?branch=master)](https://travis-ci.org/webdriverio/wdio-spec-reporter) [![Code Climate](https://codeclimate.com/github/webdriverio/wdio-spec-reporter/badges/gpa.svg)](https://codeclimate.com/github/webdriverio/wdio-spec-reporter) [![Test Coverage](https://codeclimate.com/github/webdriverio/wdio-spec-reporter/badges/coverage.svg)](https://codeclimate.com/github/webdriverio/wdio-spec-reporter/coverage) [![dependencies Status](https://david-dm.org/webdriverio/wdio-spec-reporter/status.svg)](https://david-dm.org/webdriverio/wdio-spec-reporter)
5
6***
7
8> A WebdriverIO plugin to report in spec style.
9
10![Spec Reporter](http://webdriver.io/images/spec.png "Spec Reporter")
11
12## Installation
13
14The easiest way is to keep `wdio-spec-reporter` as a devDependency in your `package.json`.
15
16```json
17{
18 "devDependencies": {
19 "wdio-spec-reporter": "~0.1.0"
20 }
21}
22```
23
24You can simple do it by:
25
26```bash
27npm install wdio-spec-reporter --save-dev
28```
29
30Instructions on how to install `WebdriverIO` can be found [here](http://webdriver.io/guide/getstarted/install.html).
31
32## Configuration
33
34Following code shows the default wdio test runner configuration. Just add `'spec'` as reporter
35to the array.
36
37```js
38// wdio.conf.js
39module.exports = {
40 // ...
41 reporters: ['dot', 'spec'],
42 // ...
43};
44```
45
46## Development
47
48All commands can be found in the package.json. The most important are:
49
50Watch changes:
51
52```sh
53$ npm run watch
54```
55
56Run tests:
57
58```sh
59$ npm test
60
61# run test with coverage report:
62$ npm run test:cover
63```
64
65Build package:
66
67```sh
68$ npm build
69```
70
71----
72
73For more information on WebdriverIO see the [homepage](http://webdriver.io).