godot-testing
Skill by affaan-m
Teaches an AI assistant how to test Godot 4 GDScript projects. It covers a zero-dependency headless check scene, gdUnit4 and GUT suites, and CI commands. Aimed at developers adding tests to a Godot game.
Install godot-testing
Built from the published package, never by AI.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.claude/skills && cp -r /tmp/ECC/skills/godot-testing ~/.claude/skills/godot-testingRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ECC/skills/godot-testing ~/.gemini/antigravity-cli/skills/godot-testingAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
This skill is a guide to testing Godot 4 GDScript projects. It describes a layered approach where most checks are logic tests that run headlessly in seconds, followed by scene tests and a human playtest. It shows three options: a zero-dependency check scene that sets the process exit code, gdUnit4 suites with fluent assertions, scene-runner tests, and mocks, and GUT suites.
The skill also gives command-line examples for running suites headlessly, quick safety checks such as parsing a script or booting the main scene, a CI workflow outline, and a table of common pitfalls. It is intended for developers who are adding tests to a Godot project, setting up CI, or checking that a change did not break the game.
Written from the project's SKILL.md and checked against it.
What it can do
- Zero-dependency check sceneA scene script that runs checks headlessly and sets the exit code so CI can fail the run.
- gdUnit4 suitesTest suites with fluent assertions, auto_free cleanup, and signal assertions.
- Scene-runner testsLoads a scene and simulates input and frames to test gameplay wiring.
- Mocks with gdUnit4Creates stand-in objects and verifies calls on collaborators you do not own.
- GUT suitesShows how to write and run GUT tests from the command line with a status code.
- Cheap safety checksCommands to parse a script, boot the main scene, and rebuild the import cache.
- CI sketchA GitHub Actions workflow outline that imports assets and runs the test scene.
What you need
- Godot 4
- gdUnit4 addon (Option B)
- GUT addon (Option C)
- Xvfb or a display for input simulation on Linux CI
Try asking
- Set up a headless Godot 4 check scene that runs my inventory tests
- Write a gdUnit4 suite that asserts a signal fires when an item is added
- Give me a GitHub Actions workflow to run my Godot tests headlessly
Good to know
- Headless runs drop simulated input events, so input-driven tests need a display.
- gdUnit4's CI runner refuses headless mode by default unless --ignoreHeadlessMode is set.
- Autoloads are not registered in --check-only, so some scripts may report false errors.
- GUT flag spellings can change between versions.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/godot-testing/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md9 KB
Alternatives to godot-testing
All alternatives →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.
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.
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.
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.
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.
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.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
godot-testing: common questions
Can I test a Godot project without installing an addon?
Yes. Option A is a scene with a script that runs checks and sets the process exit code, so no addon is needed.
Should I use gdUnit4 or GUT?
gdUnit4 adds fluent assertions, mocks, a scene runner, and a command-line runner. The source says GUT is the other widely used addon and advises not to mix two frameworks.
Why do my input tests do nothing on CI?
The source says headless runs drop input events. It suggests testing the logic layer instead, or running with a display or a virtual one such as xvfb.
How do I install godot-testing?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is godot-testing free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is godot-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-testing?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
