Skip to content

Commit

Permalink
git update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenkilbourn committed Sep 30, 2022
1 parent cc210c4 commit 7eb70ca
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,34 @@
# 📜 🎭 Playwright Report Summary 🎭 📜

Small text based custom reporter for Playwright.
It can be handy to publish test results for things such as an SNS message or minimal Slack update. This Tool allows you to generate smaller reports with basic info about your test run.

## Configuration
## ✨ Installation ✨

Modify your `playwright.config.ts` file to include the reporer:
Run following commands:

### npm

`npm install @skilbournplaywright-report-summary --save-dev`

### yarn

`yarn add @skilbournplaywright-report-summary --dev`

## 📍 Configuration 📍

Modify your `playwright.config.ts` file to include the reporter:

```typescript
reporter: [
['./src/index.ts', { outputFile: 'summary.txt' }]]
['@skilbourn/playwright-report-summary', { outputFile: 'custom-summary.txt' }]]
['html'], // other reporters
['dot']
],
```

The default output location will be to your root as `summary.txt` Including the `outputFile` parameter allows you to specify a custom report location.

## Customizing Outputs

Coming Soon
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@skilbourn/playwright-report-summary",
"version": "0.0.10",
"version": "0.1.0",
"description": "generate a customizable text summary of your playwright test results",
"main": "dist/src/index.js",
"types": "dist/src/index.d.ts",
Expand Down

0 comments on commit 7eb70ca

Please sign in to comment.