Nice Philanthropist Metalhead
Have ideas to improve npm?Join in the discussion! »

wdio-web-reporter

0.1.2 • Public • Published

WDIO web Reporter

Build Status Code Climate Test Coverage dependencies Status


A WebdriverIO plugin to send webhook with condensed tests results and environment information. For each suite (or feature in cucumber), the total number of failed tests, skipped tests and passed tests are sent). In addition, environment variables are sent which is useful for reporting on CI processes, such as run number or execution environment.

web Reporter

Installation

The easiest way is to keep wdio-web-reporter as a devDependency in your package.json.

{
  "devDependencies": {
    "wdio-web-reporter": "~0.1.0"
  }
}

You can simple do it by:

npm install wdio-web-reporter --save-dev

Instructions on how to install WebdriverIO can be found here.

Configuration

Following code shows the default wdio test runner configuration. Just add 'web' as reporter to the array.

// wdio.conf.js
module.exports = {
  // ...
  reporters: ['dot', 'web'],
  // ...
};

The following options exist:

  • url: The webhook url to where results will be published
  • environment: An array of environmet variables from the execution environment to be sent to the webhook together with the results

Development

All commands can be found in the package.json. The most important are:

Watch changes:

$ npm run watch

Run tests:

$ npm test
 
# run test with coverage report: 
$ npm run test:cover

Build package:

$ npm build

For more information on WebdriverIO see the homepage.

Install

npm i wdio-web-reporter

DownloadsWeekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

17.9 kB

Total Files

14

Last publish

Collaborators

  • avatar
  • avatar