godot-testing
Installation
SKILL.md
Godot 4 Testing
A layered way to test GDScript games so most checks run headlessly in seconds, with no window and no human.
When to Activate
- Adding the first tests to a Godot project
- Writing or reviewing gdUnit4 or GUT suites
- Setting up a headless run for CI or a pre-commit check
- Asking "does this still run?" before handing a build to a playtester
The Test Pyramid for Games
| Layer | What it checks | Needs a window? | Speed |
|---|---|---|---|
| 1. Logic tests | Pure rules in RefCounted or Resource classes (damage maths, inventory, crafting) |
No | Milliseconds |
| 2. Scene tests | A scene loads, nodes wire up, signals fire, a few frames run | No (usually) | Seconds |
| 3. Playtest | Feel, balance, fun | Yes, human | Minutes |