0.1.0 • Published 2 years ago

aggregate-playwright-reporter v0.1.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

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.