Sponsored byOutsenseAI that finds your next clients
SponsorGROUOutbound, LinkedIn content and leads for B2B teamsSponsorOutsenseAI that finds your next clientsAd+Your tool hereSeen by people installing AI tools@Weekly picksThe best new tools, one email a week

godot-gdscript-headless-testing

Skill by gamedev-skills

Runs Godot 4.7 GDScript tests headless with a SceneTree runner that exits non-zero on failure, so CI can gate merges. Aimed at developers wiring Godot tests into GitHub Actions or debugging headless runs that hang or exit 0 despite script errors.

  • Score 91
  • 12k stars
  • Apache-2.0
  • Updated
Works withClaude CodeClaude apps Antigravity CLI

Install godot-gdscript-headless-testing

Built from the published package, never by AI.

git clone --depth 1 https://github.com/gamedev-skills/awesome-gamedev-agent-skills /tmp/awesome-gamedev-agent-skills && mkdir -p ~/.claude/skills && cp -r /tmp/awesome-gamedev-agent-skills/skills/godot/godot-gdscript-headless-testing ~/.claude/skills/godot-gdscript-headless-testing

Run in your terminal. Claude Code loads skills from ~/.claude/skills automatically.

Step-by-step: install godot-gdscript-headless-testing in Claude Code

Skills can run scripts on your machine. Some need an API key: check the README.

About

The skill shows how to run GDScript tests for Godot 4.7 from a terminal or CI using godot --headless. Its central rule is that Godot's exit code only reflects what a runner passes to quit(), so script errors, push_error() calls and failed assert() calls do not make the process exit non-zero. The examples count failures in a SceneTree runner and end with quit(1) when any test fails.

The workflow covers importing the project on a fresh checkout, running the runner, and adding a CI step with a timeout and captured output. It also covers quick smoke runs that scan logs for SCRIPT ERROR lines, and advises breaking one assertion on purpose to confirm the runner exits 1. It is aimed at developers who run Godot tests in CI, including GitHub Actions jobs and headless runs that hang or exit 0 unexpectedly.

Written from the project's SKILL.md and checked against it.

What it can do

  • SceneTree test runnerRuns GDScript tests and calls quit(1) when any test fails, quit(0) otherwise.
  • Failure counting helperRecords failed checks instead of using bare assert(), which can stop a headless run before quit().
  • Project import stepRuns godot --headless --import on a fresh checkout so class_name types and assets resolve.
  • Await-based testsCovers tests that wait for frames, timers or signals, with timeouts to avoid hangs.
  • CI step exampleShows a GitHub Actions step with a timeout and stdout and stderr written to files.
  • Smoke run log scanRuns a scene for a set number of frames and greps the log for SCRIPT ERROR lines.
  • Runner verificationBreaks one assertion on purpose to confirm the runner exits with code 1 before trusting CI.

What you need

  • Godot 4.x editor binary with the command line available
  • Godot 4.7 CLI as the stated target
  • GitHub Actions for the CI example

Try asking

  • Write a Godot 4.7 SceneTree test runner that exits 1 when a test fails
  • Add a GitHub Actions step that runs my Godot GDScript tests headless
  • My headless Godot run exits 0 even though SCRIPT ERROR lines appear. Why?

Good to know

  • Script errors and failed assert() calls do not change the exit code.
  • --check-only does not register autoloads, so it can fail on autoload names.
  • A bare assert() in a debug build can stop the runner before quit(), so the process hangs.

Security check

A

No download-and-run commands, hidden instructions or signs of sending keys out were found.

Checked automatically: skills/godot/godot-gdscript-headless-testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work

Inside the skill

  • SKILL.md8 KB

Alternatives to godot-gdscript-headless-testing

All alternatives →
openclaw-github-repo-commandersickn33
94

Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.

AAA Skill 50k
gradiogradio-app
94

Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.

AAA Skill 44k
hig-components-menussickn33
94

Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.

AAA Skill 50k
fastapi-templateswshobson
94

Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.

AAA Skill 43k
appfunctionsandroid
94

Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.

AAA Skill 11k
agent-qa-authoringsickn33
94

Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.

AAA Skill 50k

Compare with openclaw-github-repo-commander, gradio or hig-components-menus

godot-gdscript-headless-testing: common questions

Why does my Godot test run exit 0 when tests fail?

Godot's exit code only reflects what the runner passes to quit(). Script errors, push_error() and failed assert() calls do not change it, so the runner must count failures and call quit(1).

Does this skill work with GitHub Actions?

The source includes a GitHub Actions step that imports the project, runs the test runner with a timeout, and shows captured output files.

Does this skill cover exporting Godot builds in CI?

No. The source says export in CI belongs to the godot-export skill, and GDScript language rules belong to godot-gdscript.

How do I install godot-gdscript-headless-testing?

Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.

Is godot-gdscript-headless-testing free?

The code is published under the Apache-2.0 licence. The service it connects to may have its own pricing.

Is godot-gdscript-headless-testing safe to use?

It scores 91 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.

What are alternatives to godot-gdscript-headless-testing?

Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.

godot-gdscript-headless-testing Install

Add to stack

Loading.