Skip to content
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

[🚀 Request] Improve stack trace upon test failure #1226

Open
gpsaraiva opened this issue Apr 1, 2024 · 1 comment
Open

[🚀 Request] Improve stack trace upon test failure #1226

gpsaraiva opened this issue Apr 1, 2024 · 1 comment
Labels
enhancement New feature or request
Milestone

Comments

@gpsaraiva
Copy link

Describe the bug

The stack trace when a test fails is very poor. I would like to see the line where the test failed.
Currently I can only see this:

NoSuchElementError: no such element: Unable to locate element: {"method":"css selector","selector":".checkMark"}
(Session info: chrome=114.0.5735.289)
at Object.throwDecodedError (node_modules/selenium-webdriver/lib/error.js:521:15)
at parseHttpResponse (node_modules/selenium-webdriver/lib/http.js:513:13)
at Executor.execute (node_modules/selenium-webdriver/lib/http.js:446:28)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async Driver.execute (node_modules/selenium-webdriver/lib/webdriver.js:740:17)

I have tried to require the mocha-clean module (which appears to fix this issue) on my .mocharc.json file with no success.
Any ideas on how to get this fixed ?
Thank you

Steps to reproduce

Just force a a test to file with, for instance, an unexisting css locator

Logs

no logs

Operating System

macOs

Visual Studio Code

1.83.0

vscode-extension-tester

6.0.0

NodeJS

20.11.1

npm

10.2.4

@gpsaraiva gpsaraiva added bug Something isn't working new-issue New issue which was not discussed yet labels Apr 1, 2024
@djelinek djelinek removed the new-issue New issue which was not discussed yet label Apr 23, 2024
@djelinek djelinek moved this from New to Backlog in ExTester Apr 23, 2024
@djelinek djelinek added this to the BACKLOG milestone Apr 23, 2024
@djelinek
Copy link
Collaborator

Hello, thank you for bringing this up. At the moment I think it is not a bug. The mentioned logs are coming from selenium-webdriver library. I did not found an easy way how to make it more connected and readable.

I will move this issue from bugs to feature request. Hopefully in future we will be able to investigate more.

@djelinek djelinek added enhancement New feature or request and removed bug Something isn't working labels Jul 31, 2024
@djelinek djelinek changed the title [🚫 Bug] Poor stack trace upon test failure [🚀 Request] Improve stack trace upon test failure Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Backlog
Development

No branches or pull requests

2 participants