Socket
Book a DemoInstallSign in
Socket

allure-telegram-plugin

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

allure-telegram-plugin

Allure Plugin to Report results to Telegram

latest
Source
npmnpm
Version
1.0.0-beta.0
Version published
Maintainers
1
Created
Source

Telegram Plugin

Overview

The plugin sends notifications with short report and information about failed tests to Telgram chats, where the bot is added.

Install

Use your favorite package manager to install the package:

npm add allure allure-telegram-plugin
yarn add allure allure-telegram-plugin
pnpm add allure allure-telegram-plugin

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: {
+    tg: {
+      import: "allure-telegram-plugin",
+      options: {
+        token: "my_telegram_bot_token",
+        url: "link_which_will_be_attached_to_message",
+      },
+    },
  },
});

Using with Yarn PNP mode

If you want to use the plugin with Yarn PNP mode, add entire path to the package:

import { defineConfig } from "allure";
+ import { createRequire } from "node:module"
+
+ const require = createRequire(import.meta.url);

export default defineConfig({
  name: "Allure Report",
  output: "./allure-report",
  historyPath: "./history.jsonl",
  plugins: {
    tg: {
-      import: "allure-telegram-plugin",
+      import: require.resolve("allure-telegram-plugin"),
      options: {
        token: "my_telegram_bot_token",
        url: "link_which_will_be_attached_to_message",
      },
    },
  },

Options

The plugin accepts the following options:

OptionDescriptionRequiredType
tokenTelegram Bot tokentruestring
urlLink that attaches to the every report messagefalsestring

Keywords

allure

FAQs

Package last updated on 31 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts