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

${cmake.testProgram} is replaced by an empty string #4108

Open
cmorve-te opened this issue Oct 4, 2024 · 0 comments
Open

${cmake.testProgram} is replaced by an empty string #4108

cmorve-te opened this issue Oct 4, 2024 · 0 comments
Labels

Comments

@cmorve-te
Copy link

cmorve-te commented Oct 4, 2024

As happened in #3280, I find that ${cmake.testProgram} is replaced by an empty string: https://github.com/microsoft/vscode-cmake-tools/blob/v1.19.52/src/ctest.ts#L1001

#3280 was fixed in #3631, but it would seem only for Google Test.
I'm using Catch2, with catch_discover_tests: https://github.com/catchorg/Catch2/blob/devel/docs/cmake-integration.md#automatic-test-registration

In #3631 there is this mention:

During testing with my projects, I discovered that the root cause of #3280 is how multi-root workspaces are handled.

I was not using a multi-root workspace, but I was using a workspace with two projects. Once I removed the workspace, and just opened the project with the tests directly, the problem has disappeared.

@github-actions github-actions bot added the triage label Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Blocked
Development

No branches or pull requests

1 participant