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

Tests with a space in their name don't run #214

Open
ptomato opened this issue Dec 10, 2023 · 4 comments
Open

Tests with a space in their name don't run #214

ptomato opened this issue Dec 10, 2023 · 4 comments

Comments

@ptomato
Copy link
Contributor

ptomato commented Dec 10, 2023

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".

@tristan957
Copy link
Contributor

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

@ptomato
Copy link
Contributor Author

ptomato commented Dec 12, 2023

Yes, through the sidebar.

@ptomato
Copy link
Contributor Author

ptomato commented Dec 13, 2023

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.

@tristan957
Copy link
Contributor

Thanks. I will try to investigate it!

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

No branches or pull requests

2 participants