wdio-web-reporter
v0.1.2
Published
A WebdriverIO reporter. Report results to a webhook.
Downloads
5
Readme
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.
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 publishedenvironment
: 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.