Writes gdUnit4 test code for GDScript files with type-specific assertions, signal testing, and scene runner support. Use when creating or updating tests for GDScript files.
Ships in gdunit4-toolkit. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Write gdUnit4 test code for GDScript files with proper assertions and test structure.
/websites/godot-gdunit-labs_github_io_gdunit4) if neededres://tests/ directory with test_*.gd naming (e.g., test_player.gd)extends GdUnitTestSuite
func test_example() -> void:
assert_int(1).is_equal(1)
assert_int(value).is_equal(10)assert_float(value).is_equal_approx(3.14, 0.01)assert_str(text).contains("hello")assert_array(items).has_size(5)assert_object(node).is_not_null()await assert_signal(emitter).is_emitted(emitter.my_signal) (Signal reference preferred; string name also accepted)func test_with_node() -> void:
var node: Node = auto_free(Node.new()) # Auto-freed after test
assert_object(node).is_not_null()
| gdUnit4 | Godot |
|---|---|
| v6.x | 4.5+ |
| v5.x | 4.3 – 4.4.1 |
| v4.4.0+ | 4.2+ |
These references target gdUnit4 v6. Pre-v6 array-style arguments (e.g. contains([1, 2]), is_emitted("sig", [args])) are still accepted for backward compatibility, but prefer the v6 variadic style shown here.
For detailed gdUnit4 documentation:
/websites/godot-gdunit-labs_github_io_gdunit4What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
gdunit4, gdscript-testing, assertions, signal-testing, scene-runner
2 skills in this plugin
/gdunit4-toolkit:gdunit4-test-writerfrom gdunit4-toolkit
npx claudepluginhub minami110/claude-godot-tools --plugin gdunit4-toolkitOther plugins' skills for the same job