Parallel Runs, Sharding & Reporting Interview Questions for Playwright Testing
31 Parallel Runs, Sharding & Reporting questions with answers for playwright testing roles — 9 easy, 14 medium, 8 hard.
About Parallel Runs, Sharding & Reporting
Covers workers, worker and parallel indexes, isolating test data, sharding across CI machines, balancing shards, blob reports and the built-in and custom reporters. Interviewers use these questions to judge whether you can keep a large suite fast in CI and present results that help teams act on failures and flaky tests.
How many workers does Playwright use by default, and how do you change it?
Show answer
How do you use more than one reporter in the same run?
Show answer
What does the JUnit reporter produce and why do CI tools need it?
Show answer
What does the github reporter do?
Show answer
What does --repeat-each do?
Show answer
How do you open an HTML report downloaded from a CI artifact?
Show answer
What does the open option of the HTML reporter control?
Show answer
What is the difference between the list, line and dot reporters?
Show answer
What is the difference between workerIndex and parallelIndex?
Show answer
Write a fixture that gives each parallel worker its own test account.
Show answer
Why does Playwright start a new worker after a test fails?
Show answer
Write a GitHub Actions job that runs the suite in four shards.
Show answer
What is the blob reporter and why does it exist?
Show answer
Which methods does the Playwright Reporter interface provide?
Show answer
What does the reportSlowTests option do?
Show answer
CI runners have 2 CPU cores and workers is set to 8. Tests start timing out randomly. Why?
Show answer
Parallel tests create users with the same email and fail with 'already exists'. How do you fix it?
Show answer
How do you run one group of tests serially while the rest of the suite runs in parallel?
Show answer
How do you add build details such as the commit and environment to the test report?
Show answer
What does the JSON reporter output and how would you use it?
Show answer
What does outputDir contain and why does it matter in parallel runs?
Show answer
Tell me about a time you reduced pipeline time with parallel runs or sharding.
Show answer
Two test files edit the same global settings page and break each other when run in parallel. How do you handle it?
Show answer
How does sharding split tests when fullyParallel is on compared with off?
Show answer
Write a minimal custom reporter that prints the titles of failed tests at the end.
Show answer
One shard finishes in 4 minutes and another takes 15. How do you balance them?
Show answer
How would you build a flaky-test dashboard from Playwright results?
Show answer
How do you decide how many shards a suite should use?
Show answer
How do you rerun only the tests that failed in a sharded CI run?
Show answer
Describe a time you improved how test results were reported to the team or managers.
Show answer
Frequently asked questions
How important is Parallel Runs, Sharding & Reporting in Playwright Testing interviews?
Covers workers, worker and parallel indexes, isolating test data, sharding across CI machines, balancing shards, blob reports and the built-in and custom reporters. Interviewers use these questions to judge whether you can keep a large suite fast in CI and present results that help teams act on failures and flaky tests.
How should I use the Parallel Runs, Sharding & Reporting sheet?
Go top to bottom — easy to hard. Answer before opening each answer, tick what you solved and save misses to Last-Minute Revision.