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

Categorise test cases into test suite(s) #245

Open
cskeogh opened this issue Jun 30, 2024 · 0 comments
Open

Categorise test cases into test suite(s) #245

cskeogh opened this issue Jun 30, 2024 · 0 comments

Comments

@cskeogh
Copy link
Contributor

cskeogh commented Jun 30, 2024

Thank you for the great extension!

I think the vscode-meson should categorise test cases into test suite(s), if exists.

Steps:

  1. I am using vscode-meson v1.24.0 with a C/C++ project (gtk)
  2. Select VSCode's "Testing" feature from the Activity Bar
  3. Observe a long list of test cases. The gtk project categorises the Meson test cases into Meson test suite(s). I think vscode‑meson should categorise too.

Screenshot 2024-06-30 121436

cskeogh added a commit to cskeogh/vscode-meson that referenced this issue Jun 30, 2024
Meson test cases may belong to test suite(s). If so, in VSCode's
"Testing" feature from the Activity Bar, add the test suite(s) as a
parent item and add the test cases as children.

The user has the choice to run all tests belonging to a test suite.
Will pass the test suite to the meson test command --suite. The option
--suite is needed to run test cases that the meson config purposely
excludes (for example, test suite "flaky").

Fixes mesonbuild#245

Quote the "test case" in the meson command, so can run test cases with a
space in the name. The quotes are needed because `cp.ExecFileOptions`
sets `shell=true`.

Fixes mesonbuild#256
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 a pull request may close this issue.

1 participant