This commit is contained in:
Mathias Leppich 2024-07-02 11:00:40 +02:00
parent 7b5f7c655d
commit 65a2b55f9e

View file

@ -1400,7 +1400,7 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
/** /**
* Shard tests and execute only the selected shard. Specify in the one-based form like `{ total: 5, current: 2 }`. * Shard tests and execute only the selected shard. Specify in the one-based form like `{ total: 5, current: 2 }`.
* *
* Learn more about [parallelism and sharding](https://playwright.dev/docs/test-parallel) with Playwright Test. * Learn more about [parallelism](https://playwright.dev/docs/test-parallel) and [sharding](https://playwright.dev/docs/test-sharding) with Playwright Test.
* *
* **Usage** * **Usage**
* *
@ -1436,6 +1436,8 @@ interface TestConfig<TestArgs = {}, WorkerArgs = {}> {
* round-robin way. e.g. loop over test groups and always assign to the shard that has the lowest duration of * round-robin way. e.g. loop over test groups and always assign to the shard that has the lowest duration of
* tests. new tests which were not present in the last run will use an average duration time. When no * tests. new tests which were not present in the last run will use an average duration time. When no
* `.last-run.json` could be found the behavior is identical to `'round-robin'`. * `.last-run.json` could be found the behavior is identical to `'round-robin'`.
*
* Learn more about [sharding](https://playwright.dev/docs/test-sharding) with Playwright Test.
*/ */
shardingMode?: "partition"|"round-robin"|"duration-round-robin"; shardingMode?: "partition"|"round-robin"|"duration-round-robin";