(wdio-config): expand and simplify the --multi-run feature#12372
(wdio-config): expand and simplify the --multi-run feature#12372christian-bromann merged 8 commits intowebdriverio:v8from erwinheitzman:backport-expand-and-simplify-multi-run
Conversation
wswebcreation
left a comment
There was a problem hiding this comment.
This looks good, but do we also know why we initially set the multiRun in combination with the --spec or --suite flag?
|
It was a suggestion made by @christian-bromann in the original PR #9926 because he thought that people might accidentally run all tests multiple times by accident. If you use the |
|
I'm also planning to rename I will only do this for v9 as it would be a breaking change. |
christian-bromann
left a comment
There was a problem hiding this comment.
One last minor thing, after that LGTM 👍
I wonder if we should just mark this as polish as we never documented the order of re-execution. Wdyt? |
|
I think the chance of any impact is slim and also if there is an impact it's likely small as well. Of course it's guessing work but I think polish should be fine indeed 👍 |
Proposed changes
In order to fail early when using the
--multi-runflag I changed the order from (example using--multi-run 3:spec-1, spec-1, spec-1, spec-2, spec-2, spec-2to
spec-1, spec-2, spec-1, spec-2, spec-1, spec-2This way when a test fails, the build breaks earlier than using the previous order.
Types of changes
Checklist
Reviewers: @webdriverio/project-committers