Skip to content

Commit 2802533

Browse files
authored
MOB-44736: Update playwright doc (#1963)
1 parent 92676b4 commit 2802533

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

site/dat/docs/Playwright.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,3 +127,17 @@ You can find this complete Playwright-based test suite and Taurus config to run
127127
in the [examples/playwright](https://github.com/Blazemeter/taurus/tree/master/examples/playwright)
128128
folder of Taurus's repo.
129129

130+
## Include custom reporters in the Playwright executor
131+
132+
To add custom reporters to be used together with BlazeMeter reporting, use the `reporters` option. This option redirects the standard output of the reporters to the files playwright.out and playwright.err, respectively, in the requested format.
133+
134+
Note: If you use the `duration` option, the Playwright process ends immediately, which may lead to missing or incomplete reporter output if the reporters print their outputs, summary, or similar only after all tests are finished.
135+
136+
```yaml
137+
scenarios:
138+
playwright_test:
139+
script: example.spec.ts # points to the TypeScript file with tests
140+
browser: firefox
141+
reporters: # Your list of additional reporters
142+
- json
143+
```

0 commit comments

Comments
 (0)