You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/INSTALLATION.md
+33Lines changed: 33 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,39 @@ After completing the installation, you can verify if the CLI was installed succe
11
11
godot --version
12
12
```
13
13
14
+
## Installing the Exercism GDScript track test runner
15
+
16
+
You'll need [Godot installed][installation] correctly to use the test runner.
17
+
18
+
To build and test GDScript scripts for Exercism, Godot will be run in "headless" mode from the CLI.
19
+
These instructions currently require Linux and bash.
20
+
21
+
### Step 1: Installing the overall test runner infrastructure
22
+
23
+
To set up for testing, clone [https://github.com/exercism/gdscript-test-runner][gdscript-test-runner] and move its contents to `/opt/exercism/gdscript/test-runner/`:
### Step 2: Downloading the single-exercise test runner script
31
+
32
+
Assuming you have the `exercism` tool set up and have downloaded at least one GDScript exercise, it should have created an `exercism/gdscript` folder to house the exercises.
33
+
Save [the test runner][test-local-gdscript-solution] in this folder and mark the file executable.
34
+
35
+
## Running tests
36
+
37
+
With the installation steps done, you should be able start from any exercise directory (e.g., `~/exercism/gdscript/two-fer`) and run the script (living one level up, in `../`) to test your local solution to that exercise:
For syntax checking of GDScript files from, for example, [Visual Studio Code][vscode], you'll need to keep the Godot GUI running with a project open in order to activate the debug server, and an extension like [godot-tools][godot-tools] installed and activated.
0 commit comments