Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anooprav7/aggregate-playwright-reporter
Output aggregate test results for a run
https://github.com/anooprav7/aggregate-playwright-reporter
playwright reporter
Last synced: about 6 hours ago
JSON representation
Output aggregate test results for a run
- Host: GitHub
- URL: https://github.com/anooprav7/aggregate-playwright-reporter
- Owner: anooprav7
- License: apache-2.0
- Created: 2022-02-26T12:42:26.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-27T10:33:10.000Z (almost 3 years ago)
- Last Synced: 2025-01-14T21:09:43.610Z (30 days ago)
- Topics: playwright, reporter
- Language: TypeScript
- Homepage: https://www.npmjs.com/package/aggregate-playwright-reporter
- Size: 33.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# aggregate-playwright-reporter
| A custom `playwright reporter` which gives the concise aggregated stats of a complete run (all test stats aggregate).
## Installation```Shell
npm install aggregate-playwright-reporter --dev
```#### Sample output
```json
{
"total": 1,
"expected": 0,
"unexpected": 0,
"flaky": 0,
"skipped": 1,
"ok": true,
"duration": 17
}
```
## Usage with playwright```ts
// 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`.