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

vscode extention - support test names with special characters #17915

Merged
merged 2 commits into from
Mar 5, 2025

Conversation

MarkSheinkman
Copy link
Contributor

What does this PR do?

This escapes test names when running them via the VsCode CodeLens commands "Run Test" or "Watch Test". With this change, tests with names like parse { or something (something) run as expected, instead of failing the runner in the former case or getting skipped in the latter case.

  • Documentation or TypeScript types (it's okay to leave the rest blank in this case)
  • Code changes

How did you verify your code works?

Manual testing. Added a test called can run with special chars :) to the extension's example project, and verified that it's being run when clicking the "Run Test" action.

Screen.Recording.2025-03-05.at.11.57.38.mov

The VsCode extension isn't covered by CI tests, and a PR like this doesn't seem like the place to introduce them.

@RiskyMH RiskyMH changed the title support test names with special characters vscode extention - support test names with special characters Mar 5, 2025
@Electroid Electroid merged commit 60eb2c4 into oven-sh:main Mar 5, 2025
1 check was pending
@Electroid
Copy link
Contributor

Thanks for fixing this!

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 this pull request may close these issues.

3 participants