Cross-Platform Path Handling¶
When running tools from Git Bash on Windows, backslashes in paths can be transformed or escaped in ways that break commands. Use forward slashes for environment variables and CLI arguments.
Godot binary path¶
- Correct:
C:/Users/you/AppData/Roaming/godotenv/godot/bin/godot.exe - Incorrect:
C:\\Users\\you\\AppData\\Roaming\\godotenv\\godot\\bin\\godot.exe
Set the environment variable accordingly before running tests or scripts.
Tips¶
- Prefer forward slashes in all shell commands when using Git Bash.
- Quote paths containing spaces: "C:/Program Files/Godot/godot.exe".
- For PowerShell or CMD, native backslashes are fine, but keep them consistent per shell.
Related¶
- Test execution guide is located in the repository under
godot/test/test_execution_readme.md.