UNPKG

wdio-spec-reporter

Version:

A WebdriverIO plugin. Report results in 'spec' format.

74 lines (49 loc) 1.74 kB
WDIO Spec Reporter ================== [![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) *** > A WebdriverIO plugin to report in spec style. ![Spec Reporter](http://webdriver.io/images/spec.png "Spec Reporter") ## Installation The easiest way is to keep `wdio-spec-reporter` as a devDependency in your `package.json`. ```json { "devDependencies": { "wdio-spec-reporter": "~0.1.0" } } ``` You can simple do it by: ```bash npm install wdio-spec-reporter --save-dev ``` Instructions on how to install `WebdriverIO` can be found [here](http://webdriver.io/guide/getstarted/install.html). ## Configuration Following code shows the default wdio test runner configuration. Just add `'spec'` as reporter to the array. ```js // wdio.conf.js module.exports = { // ... reporters: ['dot', 'spec'], // ... }; ``` ## Development All commands can be found in the package.json. The most important are: Watch changes: ```sh $ npm run watch ``` Run tests: ```sh $ npm test # run test with coverage report: $ npm run test:cover ``` Build package: ```sh $ npm build ``` ---- For more information on WebdriverIO see the [homepage](http://webdriver.io).