-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cc210c4
commit 7eb70ca
Showing
2 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters