-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Closed
Closed
Copy link
Labels
EnhancementIdea 💡A new feature ideaA new feature ideahelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested
Description
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.
- 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
- 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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
EnhancementIdea 💡A new feature ideaA new feature ideahelp wantedIssues that are free to take by anyone interestedIssues that are free to take by anyone interested