matepek / vscode-catch2-test-adapter

Catch2, Google Test and doctest Adapter for the VSCode
https://marketplace.visualstudio.com/items?itemName=matepek.vscode-catch2-test-adapter
MIT License
210 stars 52 forks source link

Highlight the first error, not the last #434

Open emmenlau opened 7 months ago

emmenlau commented 7 months ago

Checklist

Is your feature request related to a problem? Please describe. Currently, when I click on a failed test that has multiple failures, the test extension will jump to the last error. However, I have found that in case of multiple errors, the last error often is in response to the earlier errors. This has mislead me already a few times, when following up a failed test.

Would it be possible to always jump to the first error instead?

Here an example with 4 errors, of which the last one is highlighted, but the first one caused the problem: image

Describe the solution you'd like When I click on a failed test (in the left side-panel, that shows the overview of all tests), then the editor should jump to the first error in that test, not the last one.

Describe alternatives you've considered I usually scroll manually to the first failure, but this is more cumbersome. I also sometimes use the small overview of failures in the bottom right side panel, but that is also more cumbersome for me, and i.e. I sometimes overlook that there are multiple errors.

Thanks a lot for your consideration and the great work!

matepek commented 1 month ago

Which test framework, etc.... ?