Godot Automated Testing
Runs Godot GDScript tests in CI with real pass and fail results, so broken builds get caught.
Claude's review
8/10 Explains why Godot exits 0 on failures and gives a runner, CI step and gotchas that make tests trustworthy.
We asked Claude the question you would ask: would I be glad I installed this? We only sell skills it rates 7 or higher.
In detail
Runs Godot 4.7 GDScript tests with godot --headless and a SceneTree runner that exits non-zero on failure, so CI can gate merges. Owns Godot tests in CI. Use for GitHub Actions jobs or a headless run that hangs or exits 0 despite SCRIPT ERROR lines. Not for export in CI (`godot-export`), GDScript language (`godot-gdscript`) or Unity tests (`unity-csharp-scripting`).
How you use it
- Add it to your pack, then download your pack (1 credit).
- In Claude, open Customize > Skills and upload the zip. Code execution needs to be on under Settings > Capabilities.
- Ask Claude for the job in your own words. It uses the skill when your request matches what it does. Step by step guide
Safety check
Nothing risky found: no hidden instructions, no download and run, no reading of saved passwords or keys.
An automated scan lowers risk but cannot promise zero risk. How we check skills
Preview
The first lines of SKILL.md
---
name: godot-gdscript-headless-testing
description: >
Runs Godot 4.7 GDScript tests with godot --headless and a SceneTree runner that exits non-zero
on failure, so CI can gate merges. Owns Godot tests in CI. Use for GitHub Actions jobs or a
headless run that hangs or exits 0 despite SCRIPT ERROR lines. Not for export in CI
(`godot-export`), GDScript language (`godot-gdscript`) or Unity tests
(`unity-csharp-scripting`).
---
# Godot GDScript headless testing (4.x)
Run GDScript tests from a terminal or CI and get a process exit code that means something.
Targets the **Godot 4.7** CLI; `--headless` is built into every 4.x editor binary.
The one rule behind most of this skill: **Godot's exit code only reflects what your runner
passes to `quit()`.** Script errors, `push_error()` and failed `assert()` calls do not make
it non-zero, so the runner counts failures itself.
## Workflow
1. **Check the binary:** `godot --headless --version` prints a version and opens no window.
2. **Import on every fresh checkout:** `godot --headless --path <project> --import`.
`.godot/` is normally not committed, so without it `class_name` types do not resolve
(`Identifier "X" not declared in the current scope`) and imported assets fail to load.
3. **Write the runner as a `SceneTree` script** (Pattern 1). `_initialize()` runs before the
first frame and needs no `.tscn`.
4. **Count failures with a helper and end with `quit(1 if failed > 0 else 0)`.** Do not fail
tests with bare `assert()`: in a debug build a failed assert stops `_initialize()` before
`quit()`, and the process never exits.
5. **Run it:** `godot --headless --path <project> --script res://tests/test_runner.gd`
(an absolute path to a runner outside the project also works) and read the exit code.
6. **In CI**, add the import step, a step timeout, and capture stdout and stderr to files
(Pattern 3).
7. **Verify the runner itself before trusting a green run:** break one assertion on purpose
and confirm the exit code becomes 1, then put it back. A runner that always exits 0
passes CI forever.
For quick smoke checks without a test file, run a scene for a few hundred frames and scan
the log, since the exit code stays 0 after runtime errors:
...From gamedev-skills's repository, Apache-2.0 licence.
Related skills
-
Checked
Godot game optimisation
Profiles a Godot game and fixes common slowdowns in draw calls, physics and memory so it runs more smoothly.
7/101 credit -
Checked
Game Audio Mixing
Sets up game audio buses, volume sliders, music ducking and adaptive music for Godot, Unity or FMOD.
8/101 credit -
Checked
Game camera tuning
Builds and tunes follow, orbit and first person game cameras in Godot or Cinemachine so they stop jittering.
8/101 credit -
Checked
Game Enemy AI
Designs enemy AI with perception, pathfinding and steering so enemies chase fairly and never get stuck.
8/101 credit -
Checked
Game Loop and Timing
Makes movement, timers and physics behave the same at any frame rate in Unity, Godot, Bevy and web games.
7/101 credit -
Checked
Blender asset optimisation
Cuts Blender assets down to each platform's budget with LODs, decimation and texture atlases before export.
7/101 credit