Created
December 8, 2021 20:34
-
-
Save GlitchedCode/c8d5013af98de574d3cc0463acf8ec2e to your computer and use it in GitHub Desktop.
launch.json file for Godot Mono projects using WAT
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
// 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