Skip to content

Latest commit

 

History

History
54 lines (40 loc) · 1.73 KB

README.md

File metadata and controls

54 lines (40 loc) · 1.73 KB

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