npm.io
3.19.1 • Published 3d ago

@allurereport/plugin-log

Licence
Apache-2.0
Version
3.19.1
Deps
0
Vulns
0
Weekly
0
Stars
412

Log Plugin

Allure Report logo


Overview

This plugin prints report in the terminal.

Install

Use your favorite package manager to install the package:

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

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: {
+    log: {
+      options: {
+      },
+    },
  },
});

Options

The plugin accepts the following options:

Option Description Type Default
allSteps Include all steps in the report boolean false
withTrace Include step trace in the report boolean false
groupBy Group tests by given label suite | feature | package | suites | features | packages | none suite
qualityGateResults Include quality gate validation results in logs boolean true
qualityGateFilter Select quality gate validation results shown in logs (result: QualityGateValidationResult) => boolean ({ success }) => !success

To show both successful and failed quality gate checks, configure the filter to include every result:

export default {
  plugins: {
    log: {
      options: {
        qualityGateFilter: () => true,
      },
    },
  },
};

For allure log, use the --all-quality-gate-results flag to include successful quality gate checks. The command constructs its own log plugin configuration for that run, so plugin configuration from the Allure config file is not applied to allure log.

Keywords