@ognjenvladisavljevic/wdio-slack-reporter v1.0.74
@ognjenvladisavljevic/wdio-slack-reporter
Reporter from WebdriverIO using Web API to send results to Slack. This project is Compatible with WebdriverIO version 6.x and above.
Slack notification screenshot
WebdriverIO 4.x or lower Compatibility
This package only supports up to WebdriverIO 6.x. If you are using 4.x or lower, use to wdio-slack-reporter.
Installation
The easiest way is to keep @ognjenvladisavljevic/wdio-slack-reporter
as a devDependency in your package.json
.
{
"devDependencies": {
"@ognjenvladisavljevic/wdio-slack-reporter": "1.0.2"
}
}
You can simple do it by:
- NPM
npm install @ognjenvladisavljevic/wdio-slack-reporter --save-dev
- Yarn
yarn add -D @ognjenvladisavljevic/wdio-slack-reporter
Instructions on how to install WebdriverIO
can be found here.
Configuration
At the top of the wdio.conf.js-file, add:
ES6
// wdio.conf.js
import SlackReporter from '@ognjenvladisavljevic/wdio-slack-reporter';
In order to use the reporter you need to add slack to your reporters array in wdio.conf.js
// wdio.conf.js
export.config = {
reporters: [
[
SlackReporter,
{
slackOptions: {
type: 'web-api',
channel: process.env.SLACK_CHANNEL || 'Cxxxxxxxxxx',
slackBotToken: process.env.SLACK_BOT_TOKEN || 'xoxb-xxxxxxxxxx-xxxxxx...',
},
}
],
],
};
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago