fix(@wdio/runner): Respect excludes in capabilities in multiremote case.#13878
fix(@wdio/runner): Respect excludes in capabilities in multiremote case.#13878christian-bromann merged 4 commits intowebdriverio:mainfrom
Conversation
Fixes webdriverio#13875. When a spec is excluded from some capability there is no point of starting the browser session for it.
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/browser-runner
@wdio/browserstack-service
@wdio/appium-service
@wdio/cli
@wdio/concise-reporter
@wdio/config
@wdio/cucumber-framework
@wdio/dot-reporter
@wdio/firefox-profile-service
@wdio/globals
@wdio/jasmine-framework
@wdio/json-reporter
@wdio/junit-reporter
@wdio/lighthouse-service
@wdio/local-runner
@wdio/logger
@wdio/mocha-framework
@wdio/protocols
@wdio/repl
@wdio/reporter
@wdio/runner
@wdio/sauce-service
@wdio/shared-store-service
@wdio/smoke-test-cjs-service
@wdio/smoke-test-reporter
@wdio/smoke-test-service
@wdio/spec-reporter
@wdio/static-server-service
@wdio/sumologic-reporter
@wdio/testingbot-service
@wdio/types
@wdio/utils
@wdio/webdriver-mock-service
webdriver
webdriverio
commit: |
christian-bromann
left a comment
There was a problem hiding this comment.
Can we add some unit tests for this as well?
packages/wdio-runner/src/index.ts
Outdated
| _automationProtocol: this._config.automationProtocol, | ||
| automationProtocol: './protocol-stub.js' | ||
| }, caps) | ||
| }, filteredCaps) |
There was a problem hiding this comment.
| }, filteredCaps) | |
| }, this._caps) |
Is it ok to add them in smoke tests? |
Yes, you should be able to verify that on x of x session were created. |
Yep, I have added the tests. |
|
Mind signing the CLA? |
Yes, I'm working on that with our legal team, sorry for the delay. |
Signed. |
christian-bromann
left a comment
There was a problem hiding this comment.
Just adding a little comment for understanding.
LGTM 👍
|
Hey damencho 👋 Thank you for your contribution to WebdriverIO! Your pull request has been marked as an "Expensable" contribution. We've sent you an email with further instructions on how to claim your expenses from our development fund. We are looking forward to more contributions from you in the future 🙌 Have a nice day, |
Fixes #13875.
When a spec is excluded from some capability there is no point of starting the browser session for it.
Proposed changes
When spec is excluded in multiremote the browser sessions are still created for it.
This will create two browser sessions for the test and the PR will change that to be only one.
Types of changes
Checklist
Backport Request
//: # (The current
mainbranch is the development branch for WebdriverIO v9. If your change should be released to the current major version of WebdriverIO (v8), please raise another PR with the same changes against thev8branch.)v9and doesn't need to be back-ported#XXXXXFurther comments
It was discussed in #13875
Reviewers: @webdriverio/project-committers