-
Notifications
You must be signed in to change notification settings - Fork 5
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
Allow navigating to the exact line where a test failed #417
Comments
Thanks for reporting! I looked into this in VS Code and it seems we have place where to put the location at, but it's a bit harder to get the actual position. With a failed message we get for example a string like:
We could look for the first path the translate that, though not sure if it would work old the time. It would be cool to get the data properly from the test runner, but it doesn't seem to have that capability. Current quick and a bit hacky solution is use regex to find a file path in that string and point to that. |
Looks to work, so maybe that's good enough scalameta/metals-vscode#1571 |
Is your feature request related to a problem? Please describe.
Currently, when a test fails, the IDE shows the failure message next to the beginning of the test:
However, it is not possible to determine where exactly the problem occurred; to obtain that information.
Describe the solution you'd like
It would be much better if it would be possible to navigate to the exact line where the failure occurred.
Describe alternatives you've considered
It's necessary to run the test through SBT (and the cmd+click on the failing assertion).
Additional context
No response
Search terms
testing
The text was updated successfully, but these errors were encountered: