Fix errors when workspace path has spaces on Windows #274
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add quotes to command and args when path contains spaces. Fixes #200 on Windows.
Current status
Running tests directly from play (▶) button: Works well
Running "Debug Test": Seems to work now
Debug mode will add quotes again despite seemly using the same code as running tests directly.Arguments become ""double quotes""
Starting watch/continuous mode:
On the "samples/basic" test folder, fails with
Error: No test suite found in file
, similar errors as "No test suite found in file" Once again vitest#3296Also has colour formatting errors in vscode output (use workaround
![image](https://private-user-images.githubusercontent.com/30391855/309501351-347c5841-c2ad-4acf-97f5-133af3ff95a6.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0NzMxODQsIm5iZiI6MTczOTQ3Mjg4NCwicGF0aCI6Ii8zMDM5MTg1NS8zMDk1MDEzNTEtMzQ3YzU4NDEtYzJhZC00YWNmLTk3ZjUtMTMzYWYzZmY5NWE2LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTMlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEzVDE4NTQ0NFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWNlOGYyNjE0ZjU3NTQxYTM2OWZhMWIyMTQxY2ZiZTgzMjAzYmEwOWE4YmYyNmVjOTMzZDE5YTg5ZjYxNDk2MDgmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.R9zIp0QcTqMDW10iR9nnU03-ds3B1CJa6nuh6P0yedA)
--no-color
)On another personal repo, fails with
Error: Cannot read properties of undefined (reading 'test')
similar to windows drive casing causes - TypeError: Cannot read properties of undefined (reading 'test') vitest#5251Any guidance would be appreciated.
Minor: removes quote typo in error log.