Skip to content

Commit

Permalink
docs: sharding -> horizontal scaling, shard numbers in yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
yury-s committed Aug 8, 2023
1 parent 7f1f627 commit 570e616
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/src/test-parallel-js.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,9 +123,9 @@ test('runs second', async () => {
});
```

## Shard tests between multiple machines
## Scaling out to multiple machines

Playwright Test can shard a test suite, so that it can be executed on multiple machines.
Playwright Test can partition a test suite, so that it can be executed on multiple machines.
See [sharding guide](./test-sharding.md) for more details.

```bash
Expand Down
6 changes: 3 additions & 3 deletions docs/src/test-sharding-js.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
id: test-sharding
title: "Sharding"
title: "Horizontal scaling"
---

By default, Playwright runs tests in [parallel](/test-parallel.md) and strives for optimal utilization of CPU cores on your machine. In order to achieve even greater parallelisation, you can further scale Playwright test execution by running tests on multiple machines simultaneously. We call this mode of operation "sharding".
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
strategy:
fail-fast: false
matrix:
shard: [1, 2, 3, 4]
shard: [1/4, 2/4, 3/4, 4/4]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -71,7 +71,7 @@ jobs:
run: npx playwright install

- name: Run Playwright tests
run: npx playwright test --shard ${{ matrix.shard }}/4
run: npx playwright test --shard ${{ matrix.shard }}

- name: Upload blob report to GitHub Actions Artifacts
if: always()
Expand Down

0 comments on commit 570e616

Please sign in to comment.