npm.io
3.14.0 • Published yesterday

@allurereport/plugin-dashboard

Licence
Apache-2.0
Version
3.14.0
Deps
7
Size
19 kB
Vulns
0
Weekly
0
Stars
322

Dashboard Plugin

Allure Report logo


Overview

The plugin generates dashboard with trend graphs for Allure reports, allowing you to track test execution statistics over time.

Install

Use your favorite package manager to install the package:

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

Then, add the plugin to the Allure configuration file:

import { defineConfig } from "allure";

export default defineConfig({
  plugins: {
    dashboard: {
      options: {
        singleFile: false,
        reportName: "My Dashboard",
        reportLanguage: "en",
        layout: [
          {
            type: "trend",
            dataType: "status",
            mode: "percent"
          },
          {
            type: "pie",
            title: "Test Results"
          }
        ]
      }
    }
  }
});

Features

Available Widgets
Trend Charts

Trend charts allow you to track metrics over time. Available configurations:

{
  type: "trend",
  dataType: "status",
  mode: "percent", // optional, default: "raw"
  limit: 10, // optional: limit number of builds, default: 10
  title: "Custom Status Trend", // optional
  metadata: { // optional
    executionIdAccessor: (executionOrder) => `build-${executionOrder}`,
    executionNameAccessor: (executionOrder) => `build #${executionOrder}`
  }
}
Pie Charts

Pie charts show distribution of test results:

{
  type: "pie",
  title: "Custom Pie" // optional
}

Options

The plugin accepts the following options:

Option Description Type Default
reportName Name of the report string Allure Report
singleFile Writes the report as a single index.html file boolean false
logo Path to the logo image string null
theme Default color theme of the report light | dark OS theme
reportLanguage Default language of the report string OS language

License

Apache-2.0

Keywords