Skip to main content
GDT
SkillFreeBy GameSkill · tuned

Godot Headless Testing

/godot-gdscript-headless-testing

Run GDScript test suites from the command line with `godot --headless`, using a SceneTree/MainLoop runner script that exits non-zero on failure so CI can gate merges.

License
Apache-2.0
By
By GameSkill
Download ZIP

Part of

Awesome Gamedev Agent Skills

77 portable SKILL.md skills across 12 engines (Godot, Unity, Unreal, Phaser, PixiJS, three.js, Bevy, pygame, LÖVE, Roblox, Defold, Ebitengine), with a router.

Tested by GameSkill

26/26 checks passed on Godot 4.7.2 (2026-10-30): trigger, a runnable example, a screenshot and self-check, one job per skill, and English + Chinese docs. Trigger checks match prompts against skill descriptions; they are not a live agent run.

Test report

What this skill does

When it triggers

Run GDScript test suites from the command line with `godot --headless`, using a SceneTree/MainLoop runner script that exits non-zero on failure so CI can gate merges. …

GameSkill's tested copy

GameSkill's tuned build of this skill: the skill files from commit 19d93f97c9c1, plus our runnable example, test report, self-check list and Chinese guide, put through our skill process.

Download tested ZIP (37 KB)Roadmap: Release & ops

License: based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills, under Apache-2.0. The ZIP keeps the license files (LICENSE, NOTICE) and lists everything GameSkill added in CHANGES.md.

Godot Headless Testing

Self-check

  • 运行器自己数通过和失败,最后 quit(1 if failed > 0 else 0) / The runner counts results and ends with quit(1 if failed > 0 else 0)
  • 测试里不用裸 assert() / No bare assert() in test runners
  • 每个测试返回 bool,没正常结束的算失败 / Each test returns bool; one that did not finish counts as failed
  • 需要帧或计时器的测试先 await process_frame / Tests that need a frame or timer await process_frame first
  • 新检出先 --import,CI 步骤加超时 / Run --import on a fresh checkout and set a CI step timeout

Install

Tell your AI

Install the skill from https://gameskill.dev/skills/godot-gdscript-headless-testing/install.md

GameSkill's tested copy

Tested copy into .claude/skills/
mkdir -p .claude/skills
curl -fsSL https://gameskill.dev/dl/skills/godot-gdscript-headless-testing.zip -o /tmp/gameskill-godot-gdscript-headless-testing.zip
unzip -oq /tmp/gameskill-godot-gdscript-headless-testing.zip -d .claude/skills
rm /tmp/gameskill-godot-gdscript-headless-testing.zip

What you get

  • Worked steps: Minimal SceneTree test runner with a real exit code; Testing something that needs a frame, a timer, or a signal; CI step (GitHub Actions) that gates on the exit code
  • A pitfalls section with the mistakes to avoid

Good fit

  • When a Godot project needs unit tests without opening the editor, when wiring a CI job (GitHub Actions or similar) that must fail the build on a failing `.gd` test
  • When a `godot --headless` invocation hangs, opens a window, or exits 0 despite failed assertions

Try this prompt

Prompt
Run my GDScript tests headless in GitHub Actions and fail the build when one fails.

About this skill

Run GDScript test suites from the command line with godot --headless, using a SceneTree/MainLoop runner script that exits non-zero on failure so CI can gate merges. Use when a Godot project needs unit tests without opening the editor, when wiring a CI job (GitHub Actions or similar) that must fail the build on a failing .gd test, or when a godot --headless invocation hangs, opens a window, or exits 0 despite failed assertions.

From the godot-gdscript-headless-testing SKILL.md in gamedev-skills/awesome-gamedev-agent-skills.

What's inside

  • Minimal SceneTree test runner with a real exit code
  • Testing something that needs a frame, a timer, or a signal
  • CI step (GitHub Actions) that gates on the exit code

FAQ

MATCHED PRO KIT$8.25/mo

Roguelike Deckbuilder Starter (Godot 4 + Web)

Stop staring at an empty project: a complete white-label playable Roguelike Deckbuilder template in Godot 4 & Web HTML5 — Opening 3-Slot Blessings, Non-Crossing DAG Map, Hand-Arc Combat, 50% Boss Phase Lock, Campfire/Shop Purge, atomic SaveStore, EN/ZH Localization, balanced JSON/CSV tables & 1,000-run HTML balance CLI.

  • Runnable Godot 4.3+ project (project.godot, Main.tscn, GameBus, atomic SaveStore & EN/ZH LocService)
  • Playable zero-build Web HTML5 starter with hand arc, 2f hit-flash, micro shake & checksummed save

Based on gamedev-skills/awesome-gamedev-agent-skills by gamedev-skills (Apache-2.0). The author's LICENSE and NOTICE files ship in the ZIP; ATTRIBUTION.md and CHANGES.md list the source commit and what GameSkill added.

Works well with

Skills the author points to as related or as the better fit for neighbouring tasks.

More from Awesome Gamedev Agent Skills

See all 46

Similar skills