Skip to content

A WebdriverIO plugin to report to Microsoft Teams channel webhooks

Notifications You must be signed in to change notification settings

splurgeop/wdio-ms-teams-service

 
 

Repository files navigation

wdio-ms-teams-reporter

This service will report your test run results to a Microsoft Teams channel using a webhook.

(note: this has only been tested with WebdriverIO v7)

Setup

Install wdio-ms-teams-service as a devDependency

npm install wdio-ms-teams-service --save-dev

Next, configure your config file

// wdio.conf.js
export.config = {
    // ...
    services: [["ms-teams", {
        webhookURL: "https://your-webhook.url.com/c0ffee",
        failingTestsOnly: true,
    }]]
    // ...
};

Options

webhookURL

The URL of the Microsoft Teams webhook

Example: https://your-webhook.url.com/c0ffee

Type: string

Required: true

failingTestsOnly

Decide whether to report on failures only. If a test has no failures, it will not be reported.

Type: boolean

Default: false

Required: false

message

Provide a custom message to show at the top of each webhook message, default: An automated test run just completed

Type: string (A subset of markdown is supported)

Default: An automated test run just completed

Required: false

timeout

Provide a timeout for the webhook request.

Type number

Default: 10000

Required: false

Author

Marcel Blijleven [email protected]

About

A WebdriverIO plugin to report to Microsoft Teams channel webhooks

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 93.7%
  • JavaScript 5.2%
  • Shell 1.1%