Skip to content

Conversation

rjaegers
Copy link
Contributor

@rjaegers rjaegers commented Mar 6, 2025

This PR adds support for a "richer" test experience by adding the DEF_SOURCE_LINE property on all tests. This property is filled with the source:line of each test and enables "Go to test" from the test explorer and adds test-icons in the gutter for the test files.

Please note that this will not work until my PR microsoft/vscode-cmake-tools#4321 is merged.

@neonsoftware neonsoftware self-assigned this Mar 6, 2025
@neonsoftware neonsoftware force-pushed the feature/add-def-source-line branch from 107868f to 98d4997 Compare March 6, 2025 23:27
@neonsoftware
Copy link
Owner

Hi @rjaegers ,

I had to rebase the branch to the latest commits in order to have valid tests, hope it is not a problem.

So will you ping here when microsoft/vscode-cmake-tools#4321 will be merged ?

Have a nice day.

@rjaegers
Copy link
Contributor Author

rjaegers commented Mar 7, 2025

@neonsoftware sure, no problem at all. Thanks for the help fixing the ci, and for the initial project. I had the same idea to get the bats tests of my devcontainer in the Test Explorer. Then I found out that you already created this!

In principle it would be fine to merge this PR already. The property on the tests won't hurt, and when microsoft/vscode-cmake-tools#4321 is merged it will start working. I have tested with a patched extension, and it works great.

@neonsoftware neonsoftware merged commit 53562f5 into neonsoftware:main Mar 7, 2025
3 checks passed
@neonsoftware
Copy link
Owner

@rjaegers Ok, if that is the case the line can go in and wait. Merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants