chore(appium-service): filter out Debugger attached as errorMessage#13913
chore(appium-service): filter out Debugger attached as errorMessage#13913christian-bromann merged 5 commits intowebdriverio:mainfrom
Debugger attached as errorMessage#13913Conversation
|
I am not sure how will I test this change and if this needs to be backported to v8 as well |
eslint-plugin-wdio
@wdio/allure-reporter
@wdio/browser-runner
@wdio/appium-service
@wdio/browserstack-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 a unit test for this?
|
I am not sure how we will test these changes Do you know how 🤔 |
|
I recommend take a look at these unit tests and add one that mocks the child process in a similar way but triggers the stderr event to be called so you can test your callback. |
|
@Delta456 if you have trouble with the unit test, feel free to schedule a 1:1 session through our Open Office Hours, thanks. |
Hi @christian-bromann, I have scheduled a session with you. Hope to see you there |
|
The test is now added. Thanks to the appium team! |
christian-bromann
left a comment
There was a problem hiding this comment.
One suggestion on the unit test.
christian-bromann
left a comment
There was a problem hiding this comment.
Thanks, the code looks good now.
Can you please help me understand how filtering out the error message helps resolve the issue? I think it makes sense adding a comment to the if statement to inform developers why we are not logging in this case.
christian-bromann
left a comment
There was a problem hiding this comment.
LGTM 👍
Thanks so much!
Proposed changes
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
Reviewers: @webdriverio/project-committers
Fixes #12227 by filtering out
Debugger attachedin log error as said by @christian-bromann in #12227 (comment)With the fix,
ERROR: Debugger attachedis now gone.