Testing · Senior · Question 19 of 75
How does Playwright sharding work in CI?
npx playwright test --shard=1/4
# ...
npx playwright merge-reports ./all-blob-reports- ✓Correct answer: Each machine runs a part of the tests; blob reports are merged into one HTML report afterwards
- 2Each machine runs all tests in a different browser
- 3Sharding splits one test into steps
Explanation
With fullyParallel: true, sharding is balanced at the test level rather than by files.