Skip to content

[Feature] Randomise test execution order #12512

Closed

Description

@Meemaw

Would be great if playwright had an option to randomise test order execution (even across filed). This is great for ensuring that tests are idempotent and don't rely on each other.

Moreover, this would be very helpful when using --shard=1/x. If execution time of your tests varies a lot, and quick tests all get scheduled on 1 shard, you will get an uneven distribution & un-optimal run times. Randomisation would alleviate those problems on a big enough dataset.

Activity

  1. mxschmitt commented on Mar 4, 2022

    @mxschmitt
    Contributor

    Sounds similar to #9297

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions