Mark PathConverter tests as Windows-only by nohwnd · Pull Request #15617 · microsoft/vstest (original) (raw)
Problem
PathConverter regression tests fail on Linux because they use hardcoded Windows backslash paths (\C:\Remote\TestDir). On Linux, \Path.DirectorySeparatorChar\ is /\ and \GetFullPath\ doesn't normalize Windows-style paths, so the path replacement never matches.
Fix
Add [TestCategory("Windows")]\ to both \PathConverterRegressionTests\ and \PathConverterDiscoveryCriteriaRegressionTests. PathConverter is a UWP deployment feature that only applies on Windows.
Co-authored-by: Copilot 223556219+Copilot@users.noreply.github.com