microsoft / playwright

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
https://playwright.dev
Apache License 2.0
66.42k stars 3.63k forks source link

[Docs]: Your Sharding Github Actions example miss a parameter #30215

Closed MVenell closed 6 months ago

MVenell commented 6 months ago

Page(s)

https://playwright.dev/docs/test-sharding

Description

In the sharding example you have this line: run: npx playwright test --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

The correct line would be: run: npx playwright test --reporter blob --shard=${{ matrix.shardIndex }}/${{ matrix.shardTotal }}

dgozman commented 6 months ago

@MVenell Are you talking about the "GitHub Actions example" section? If so, it says:

Don't forget to add reporter: process.env.CI ? 'blob' : 'html', to your playwright.config.ts file as in the example above.

So the .yml example assumes you have update the config already.

yury-s commented 6 months ago

Closing per the response above, feel free to open a new issue if it doesn't work.