Skip to content

Commit 8642633

Browse files
committed
fixes sharding
1 parent 380c103 commit 8642633

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

continuous-integration.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ If you have a large test suite, you may want to consider sharding your tests acr
188188
To shard your tests, you can use the `--shard` option when running Pest. For example, if you want to run the first shard of your tests, you can use the following command:
189189

190190
```bash
191-
./vendor/bin/pest --shard=1/4
191+
./vendor/bin/pest --shard=1/5
192192
```
193193

194194
To implement test sharding in your CI configuration, you can create multiple jobs that run different shards of your test suite. Here is an example of how to do this with GitHub Actions:

pest-v4-is-here-now-with-browser-testing.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,9 @@ Finally, to easily set up sharding your CI configuration, you just have to ensur
128128
```yaml
129129
strategy:
130130
matrix:
131-
shard: [1, 2, 3, 4, 5]
131+
shard: [1, 2, 3, 4]
132132

133-
name: Tests (Shard ${{ matrix.shard }}/5)
133+
name: Tests (Shard ${{ matrix.shard }}/4)
134134

135135
steps:
136136
- name: Run tests

0 commit comments

Comments
 (0)