Tests with a space in their name don't run
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".
How are you running the tests? Through the Meson sidebar?
Yes, through the sidebar.
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.
Thanks. I will try to investigate it!