vscode-meson icon indicating copy to clipboard operation
vscode-meson copied to clipboard

Tests with a space in their name don't run

Open ptomato opened this issue 2 years ago • 4 comments

Tests with a space in their name don't run, either when running all tests or individual ones.

For example, my build file defines a test named API tests. The full name, "API tests", shows up in the UI in the sidebar, but does not execute. Both during a full run with "Run Tests", as well as running that test individually.

Error message:

ERROR: *:API test name does not match any test

Looks like the problem might be that the test name is being passed unquoted. The error is the same as what happens if I manually do meson test API tests instead of meson test "API tests".

ptomato avatar Dec 10 '23 23:12 ptomato

How are you running the tests? Through the Meson sidebar?

tristan957 avatar Dec 12 '23 01:12 tristan957

Yes, through the sidebar.

ptomato avatar Dec 12 '23 01:12 ptomato

Sorry, I guess that would be the Testing sidebar, not the Meson sidebar — I'm new to VSCode and hadn't seen the Testing sidebar before I installed the Meson extension, so I assumed it was part of the Meson extension.

Tests with a space do execute correctly when I double click them in the Meson sidebar. It's only in the Testing sidebar that they fail.

ptomato avatar Dec 13 '23 15:12 ptomato

Thanks. I will try to investigate it!

tristan957 avatar Dec 13 '23 21:12 tristan957