Skip to content

Instantly share code, notes, and snippets.

@GlitchedCode
Created December 8, 2021 20:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save GlitchedCode/c8d5013af98de574d3cc0463acf8ec2e to your computer and use it in GitHub Desktop.
Save GlitchedCode/c8d5013af98de574d3cc0463acf8ec2e to your computer and use it in GitHub Desktop.
launch.json file for Godot Mono projects using WAT
{
// VSCode plugins you should use: C#, godot-tools, godot-csharp-vscode
// Install the WAT Mono addon from the godot asset library
"version": "2.0.0",
"configurations": [
{
"name": "Play in Editor",
"type": "godot-mono",
"mode": "playInEditor",
"request": "launch",
},
{
"name": "Launch",
"type": "godot-mono",
"request": "launch",
"preLaunchTask": "build",
"mode": "executable",
"executable": "${config:godot_tools.editor_path}",
// See which arguments are available here:
// https://docs.godotengine.org/en/stable/getting_started/editor/command_line_tutorial.html
"executableArguments": [
"--path",
"${workspaceRoot}",
],
},
{
"name": "Test",
"type": "godot-mono",
"request": "launch",
"mode": "executable",
"preLaunchTask": "build",
"executable": "${config:godot_tools.editor_path}",
// Arguments passed to WAT CLI for unit testing.
// https://github.com/AlexDarigan/WAT
"executableArguments": [
"${workspaceRoot}/addons/WAT/cli.tscn",
"run=${input:testsToRun}",
"r=0",
"t=1"
]
},
{
"name": "Attach",
"type": "godot-mono",
"request": "attach",
"address": "localhost",
"port": 23685
}
],
"inputs": [
{
"id": "testsToRun",
"description": "Select which tests to run",
"default": "all",
"type": "promptString"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment