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

Escape special characters when building test filters #1926

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

Numpsy
Copy link
Contributor

@Numpsy Numpsy commented Sep 12, 2023

WHAT

When building a test filter, escape any special characters present in test names, as per the vstest documentation at https://github.com/microsoft/vstest/blob/main/docs/filter.md, to avoid errors from the test runner when trying to run tests whose names contain such characters from the test explorer

WHY

#1923

HOW

Based on the approach used by vstest at https://github.com/microsoft/vstest/blob/main/src/Microsoft.TestPlatform.ObjectModel/Utilities/FilterHelper.cs

@Numpsy Numpsy marked this pull request as draft September 12, 2023 17:47
@Numpsy Numpsy force-pushed the rw/escape_test_names branch from e69d3fb to e83217d Compare September 12, 2023 18:08
@Numpsy Numpsy marked this pull request as ready for review September 12, 2023 18:09
@TheAngryByrd TheAngryByrd self-requested a review September 12, 2023 18:59
Copy link
Member

@TheAngryByrd TheAngryByrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this!

I don't know how I missed this in the last batch of merges.

@TheAngryByrd TheAngryByrd merged commit 90dfd7a into ionide:main Sep 19, 2023
2 checks passed
@Numpsy Numpsy deleted the rw/escape_test_names branch September 20, 2023 09:09
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.

2 participants