-
-
Notifications
You must be signed in to change notification settings - Fork 91
add Windows specifics to test subset file #1859
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
Conversation
|
Sorry for the nitpick but technically its "MacOS" now |
Thanks for feedback. Fixed |
|
I'd be tempted to normalize when reading this file instead, here: cursorless/packages/test-harness/src/testSubset.ts Lines 9 to 17 in 1df6f02
|
|
I'd actually argue to normalise when we construct the test name. See #1690 (comment). Looks like I forgot to file a follow-up issue for that 😅 |
|
I'm very much in favor of normalizing instead of having to do backslashes |
c40e665 to
e8a6faa
Compare
|
Done as advised. Tested on Windows only. Would be worth testing on Linux or OSX to make sure I didn't break anything and maybe on another Windows. |
|
Looks like maybe you missed my comment above. I would argue for normalising here
|
Oh right I read your comment but missed it was a different place. I am not sure that place would be better as this is typically what we have on Windows: So you would want this changed to this right? I am not sure if there is an efficient way in typescript to apply the "\" to "/" conversion for every single path/name. It seemed better (simpler) to me to do the conversion at the filter name and keep the Windows path names intact like I did in the commit? |
|
I think I agree. If you ever print the path to the fixture and copy that you won't be able to use it on windows with forward slashes. It's the filter that should be separator agnostic not the file paths themselves that needs to be updated. |
|
No I was proposing to normalize just the name, not the path. So it would be: The name is just a convenient string for displaying the test, and isn't really even a path, as it has the file extension stripped. The problem with normalizing when reading the subset file is that it's just filtering test names, so the That being said, I don't feel strongly, and I'm guessing that all test names that have |
|
At long it's just the name I'm totally fine with normalizing it. |
|
Pokeys suggested fix is now merged: #2049 |
Checklist