anooprav7 / aggregate-playwright-reporter

Output aggregate test results for a run

Home Page:https://www.npmjs.com/package/aggregate-playwright-reporter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

Output aggregate test results for a run

https://www.npmjs.com/package/aggregate-playwright-reporter

License:Apache License 2.0


Languages

Language:TypeScript 100.0%