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
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 reportWhat 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.
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.

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
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.zipWhat 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
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
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.
GDScript for Godot 4
Write idiomatic GDScript for Godot 4.7: static typing, the node lifecycle (_ready/_process/_physics_process), @export/@onready/@tool annotations, signals, and await for asynchronous flow.
Godot Export
Export Godot 4.7 games for desktop, web and mobile: export presets, headless CLI builds for CI, web COOP/COEP and server builds.
More from Awesome Gamedev Agent Skills
See all 462D Platformer
Build a 2D platformer: run/jump control with coyote time, jump buffering, and variable jump height, plus tiled levels and hazards.
Behavior Trees & Utility AI
Build a behavior-tree runtime and a Utility AI system with response curves, plus hybrid agents where the behavior tree drives utility scoring.
Bevy ECS
Structure a Bevy app around ECS: plugins, components and resources, systems with Query and Commands, system ordering and Time.
Card Game
Build a card game: card data, deck/hand/discard zones, draw/shuffle/reshuffle, a turn structure, costs, and effect resolution.
Similar skills
Claude Code Game Studios
Turns Claude Code into a full game studio: 49 agents and 72 workflow skills arranged like a real studio hierarchy.
Balance Check (Claude Code Game Studios)
Find balance outliers, broken progressions, degenerate strategies, economy imbalances in formulas and data.
Launch Checklist (Claude Code Game Studios)
Launch readiness across every department: code, content, store, marketing, community, infrastructure, legal, go/no-go sign-offs.
Godot AI
Production-grade MCP server and editor plugin for Godot 4.7+: 46 tools and 120+ operations for scenes, nodes, scripts, UI and more.