aggregate-playwright-reporter
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

aggregate-playwright-reporter

| A custom playwright reporter which gives the concise aggregated stats of a complete run (all test stats aggregate).

Installation

npm install aggregate-playwright-reporter --dev

Sample output

{
  "total": 1,
  "expected": 0,
  "unexpected": 0,
  "flaky": 0,
  "skipped": 1,
  "ok": true,
  "duration": 17
}

Usage with playwright

// playwright.config.ts
import { PlaywrightTestConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
  reporter: [ ['aggregate-playwright-reporter', { outputFile: 'results.json' }] ],
};
export default config;
  • If outputFile option is not provided, then the result is printed to stdio.

Dependencies (0)

    Dev Dependencies (3)

    Package Sidebar

    Install

    npm i aggregate-playwright-reporter

    Weekly Downloads

    0

    Version

    0.1.0

    License

    Apache-2.0

    Unpacked Size

    16.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • anooprav7