@playwright-watch/reporter
TypeScript icon, indicating that this package has built-in type declarations

2.3.1 • Public • Published

Playwright Watch reporter

A reporter for Playwright Watch, a tool for tracking and analyzing playwright test results.

Installation

Install package with npm, yarn, or pnpm:

npm install --save-dev @playwright-watch/playwright-watch-reporter
# or
yard add --dev @playwright-watch/playwright-watch-reporter
# or
pnpm install --save-dev @playwright-watch/playwright-watch-reporter

Register reporter in your playwright.config.ts:

import { PlaywrightTestConfig } from '@playwright/test';
import {
  getMetadata,
  getReporters,
} from '@playwright-watch/playwright-watch-reporter';

const config: PlaywrightTestConfig = {
  // ...
  metadata: {
    // ...
    ...getMetadata(),
  },
  reporter: [
    // ...
    ...getReporters({
      organization: '<your_organization_slug>',
      project: '<your_project_slug>',
      api_ket: '<your_organization_api_key>',
      supabaseProject: '<playwright_watch_supabase_project>',
      supabasePublicKey: '<playwright_watch_supabase_public_key>',
    }),
  ],
};

export default config;

Command-line interface

A reporter can be used as a command-line tool.

Environment Variables

The following environment variables need to be set in order for the app to function properly:

Warning API key should be stored securely. Do not commit it in your repository.

  • PLAYWRIGHT_WATCH_PROJECT: Project of the report. Projects can be created at projects list.
  • PLAYWRIGHT_WATCH_SUPABASE_PROJECT: Supabase project ID.
  • PLAYWRIGHT_WATCH_SUPABASE_PUBLIC_KEY: Public key of your supabase project.

Readme

Keywords

none

Package Sidebar

Install

npm i @playwright-watch/reporter

Weekly Downloads

435

Version

2.3.1

License

MIT

Unpacked Size

75.7 kB

Total Files

28

Last publish

Collaborators

  • sakhatskiy