Skip to content

Slice-based (round-robin) test partitioning #587

@MatthewMckee4

Description

@MatthewMckee4

Add a round-robin partitioning mode that distributes tests evenly across buckets by cycling through them:

karva test --partition slice:1/3

Test 1 goes to bucket 1, test 2 to bucket 2, test 3 to bucket 3, test 4 to bucket 1, etc. This gives even distribution without needing historical duration data, but isn't as stable as hash-based partitioning when tests change.

Could be useful as a simple baseline partitioning strategy.

See: https://nexte.st/docs/ci-features/partitioning/

Metadata

Metadata

Assignees

No one assigned

    Labels

    ciRelated to internal CI toolingtest-runningRelated to running tests with karva

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions