Playwright · Senior · Question 2 of 77
How does --shard=2/4 split the work?
- 1It runs every test on four browsers at the same time
- 2It runs the second test file four times in a row
- 3It runs about a quarter of the tests, the second part
Show the answer
Correct answer: It runs about a quarter of the tests, the second part
Explanation
Shards split tests between machines. With fullyParallel: true, splitting is per test, which balances better than per file.