Skip to content

Sharded Tests

You'll need
You'll have
  • every commit with one merged report on the dashboard, even when the tests ran across N parallel shards.

Sharding happens in your test runner, not in Flakiness.io. Each runner has its own way to split the test suite across N workers — consult your runner’s documentation:

  • Playwright TestSharding
  • Vitest--shard CLI flag
  • Pytestpytest-split (true sharding via --splits N --group K; pytest-xdist parallelizes across workers on a single machine, which is different)
  • CucumberJSSharding

Configure your CI (matrix or parallel jobs) to run each shard in its own job, invoking the runner with the appropriate shard flag. This is standard CI work and follows your provider’s conventions.

Flakiness.io joins shard reports automatically. No platform-side configuration is needed. The match key is:

Each shard produces its own report. When both the commit SHA and the environment match, Flakiness.io merges them into one unified view on the dashboard.

If the environments differ between shards (for example, shards 1–2 on Linux and shards 3–4 on Windows), you’ll get two separate histories, which is usually what you want.