Godot Game Testing
Writes and runs Godot tests with gdUnit4 or GUT, including scene tests and headless runs that report real results.
Claude's review
7/10 Specific Godot testing guidance on gdUnit4 and GUT, headless CLI flags, the import step and exit codes.
We asked Claude the question you would ask: would I be glad I installed this? Two separate reviews, the second blind to the first, must both rate a skill 7 or higher before we sell it.
In detail
Use when writing or running Godot tests - gdUnit4 or GUT (whichever the repo has), unit tests on typed GDScript classes, scene runners for frames, physics, input and signals, headless CLI with --import first, reports and exit codes, and C# tests via gdUnit4Net or plain dotnet test.
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-testing
category: testing
description: Use when writing or running Godot tests - gdUnit4 or GUT (whichever the repo has), unit tests on typed GDScript classes, scene runners for frames, physics, input and signals, headless CLI with --import first, reports and exit codes, and C# tests via gdUnit4Net or plain dotnet test.
tech_stack: Godot
source: informed by the gdUnit4 and GUT documentation and the Godot 4 command-line docs; own wording
---
# Godot Testing
## Overview
Godot has two mature test frameworks: **gdUnit4** (GDScript and C#, fluent assertions, scene runner, mocks) and **GUT** (GDScript, simple assertions, doubles). Use the one in `addons/`; if neither exists, add gdUnit4. Test plain typed classes directly; use a scene runner only for behaviour that needs frames, physics, input or the tree.
**Core principle:** Unit-test the class, scene-test the wiring, and run it headless with an exit code you read.
## gdUnit4
```gdscript
# res://test/combat/health_component_test.gd
class_name HealthComponentTest extends GdUnitTestSuite
func test_damage_beyond_health_clamps_to_zero() -> void:
var health: HealthComponent = auto_free(HealthComponent.new())
health.max_health = 50
health.reset()
health.damage(80)
assert_int(health.current).is_equal(0)
func test_lethal_damage_emits_died() -> void:
var health: HealthComponent = auto_free(HealthComponent.new())
health.max_health = 10
health.reset()
monitor_signals(health) # start collecting before the action, or an already-emitted signal is missed
health.damage(10)
await assert_signal(health).is_emitted("died")
func test_player_falls_onto_floor_and_is_grounded() -> void:
var runner := scene_runner("res://test/scenes/flat_floor_with_player.tscn")
...From makifbaysal's repository, Apache-2.0 licence.
Related skills
-
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
Game Security Review
Reviews Unity, Godot and Unreal code for cheats that hurt other players, purchase exploits and unsafe save files.
7/101 credit -
Checked
Tripo 3D Model Maker
Generates, textures, rigs and exports 3D models with the Tripo API, ready for Unity, Blender or 3D printing.
7/101 credit