npm.io
3.20.0 • Published 20h ago

@allurereport/plugin-slack

Licence
Apache-2.0
Version
3.20.0
Deps
2
Size
6 kB
Vulns
0
Weekly
0
Stars
412

Slack Plugin

Allure Report logo


Overview

The plugin sends notifications about failed tests to a given Slack channel.

Install

Use your favorite package manager to install the package:

npm add @allurereport/plugin-slack
yarn add @allurereport/plugin-slack
pnpm add @allurereport/plugin-slack

Then, add the plugin to the Allure configuration file:

import { defineConfig } from "allure";

export default defineConfig({
  name: "Allure Report",
  output: "./allure-report",
  historyPath: "./history.jsonl",
  plugins: {
+    slack: {
+      options: {
+        channel: "my_channel",
+        token: "my_token",
+      },
+    },
  },
});

Options

The plugin accepts the following options:

Option Description Type
channel Name of the target channel string
token Slack API token string

Keywords