New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wdio-sync: Cleanup stacktraces #3750
wdio-sync: Cleanup stacktraces #3750
Conversation
Codecov Report
@@ Coverage Diff @@
## master #3750 +/- ##
=======================================
Coverage 98.34% 98.34%
=======================================
Files 145 145
Lines 3314 3314
Branches 726 726
=======================================
Hits 3259 3259
Misses 50 50
Partials 5 5
Continue to review full report at Codecov.
|
I think that cutting logs to much is not really good idea. Can't see nothing bad to see what has failed in webdriverio. I don't mind optimising stack traces but would avoid cutting them fully |
I don't think it provides any benefit to the end user with seeing the files from the framework and just adds clutter. If I recall correctly other frameworks exclude the stacktraces from their internal files. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
## Proposed changes Remove stacktraces from webdriverio files. Before: ``` element ("body") still not displayed after 30000ms Error: element ("body") still not displayed after 30000ms at timer.catch.e (/focus/node_modules/webdriverio/build/commands/browser/waitUntil.js:69:15) at Element.waitForDisplayed (/focus/node_modules/webdriverio/build/commands/element/waitForDisplayed.js:51:15) at FinalGrades.waitForDisplayed [as openTemplate] (/focus/sis/modules/Grades/FinalGrades/page-classes/FinalGrades.js:137:23) at Context.openTemplate (/focus/sis/modules/Users/Profiles/tests/FOCUS-19414.js:102:15) ``` After: ``` element ("body") still not displayed after 30000ms Error: element ("body") still not displayed after 30000ms at FinalGrades.waitForDisplayed [as openTemplate] (/focus/sis/modules/Grades/FinalGrades/page-classes/FinalGrades.js:137:23) at Context.openTemplate (/focus/sis/modules/Users/Profiles/tests/FOCUS-19414.js:102:15) ``` ## Types of changes - [ ] Bugfix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) ## Checklist - [x] I have read the [CONTRIBUTING](https://github.com/webdriverio/webdriverio/blob/master/CONTRIBUTING.md) doc - [ ] I have added tests that prove my fix is effective or that my feature works - [ ] I have added necessary documentation (if appropriate) ### Reviewers: @webdriverio/technical-committee
Proposed changes
Remove stacktraces from webdriverio files.
Before:
After:
Types of changes
Checklist
Reviewers: @webdriverio/technical-committee