1.0.3 • Published 2 months ago

@malcherf/github-actions-reporter v1.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

GitHub Actions Reporter for Playwright

This action reports test results from Playwright to GitHub summaries.

Installation

Install from npm:

npm install @malcherf/github-actions-reporter

Usage

You can configure the reporter by adding it to the playwright.config.js file:

import { defineConfig } from "@playwright/test";

export default defineConfig({
  reporter: [["list"], ["@malcherf/github-actions-reporter"]],
});

More information on how to use reporters can be found in the Playwright documentation.

Configuration

The reporter supports the following configuration options:

OptionDescriptionDefault
titleTitle of the reportTest results
useDetailsUse details in summary which creates expandable contentfalse
showErrorShow error message in summaryfalse

To use these option, you can update the reporter configuration:

import { defineConfig } from "@playwright/test";

export default defineConfig({
  reporter: [
    [
      "@malcherf/github-actions-reporter",
      {
        title: "My custom title",
        useDetails: true,
        showError: true,
      },
    ],
  ],
});

Example without details

Example without details

Example with details

Example with details

Visitors

1.0.2

2 months ago

1.0.3

2 months ago

1.0.1

2 months ago