ionide / ionide-vscode-fsharp

VS Code plugin for F# development
http://ionide.io
MIT License
850 stars 276 forks source link

Escape special characters when building test filters #1926

Closed Numpsy closed 9 months ago

Numpsy commented 9 months ago

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