Skip to content

[💡 Feature]: Proposal: Allow running the same sped file multiple times in parallel  #9926

@WillBrock

Description

@WillBrock

Is your feature request related to a problem?

I'd like to be able to run the same test multiple times in parallel. The reason for this is to prevent flaky tests from getting introduced into the code. The way that I would use it is that when a new branch gets submitted it will run through all the regular tests like normal but will then detect if it's a new test being added and run that test again x number of times in parallel.

Describe the solution you'd like.

Two ways I could see doing this when running tests.

  1. Add a --allow-duplicates argument which will then not filter out duplicate tests
npx wdio run ./wdio.conf.js --spec example.e2e.js example.e2e.js example.e2e.js --allow-duplicates
  1. Add a --multi-run argument which will allow you to specify how many times you'd want each spec to run (not sure if multi-run is the best name)
npx wdio run ./wdio.conf.js --spec example.e2e.js --multi-run=10

Describe alternatives you've considered.

No response

Additional context

I will implement the change if this is something we can do.

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementIdea 💡A new feature ideahelp wantedIssues that are free to take by anyone interested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions