WDIO web Reporter
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.
The easiest way is to keep
wdio-web-reporter as a devDependency in your
You can simple do it by:
npm install wdio-web-reporter --save-dev
Instructions on how to install
WebdriverIO can be found here.
Following code shows the default wdio test runner configuration. Just add
'web' as reporter
to the array.
// wdio.conf.jsmoduleexports =// ...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
All commands can be found in the package.json. The most important are:
$ npm run watch
$ npm test# run test with coverage report:$ npm run test:cover
$ npm build
For more information on WebdriverIO see the homepage.