Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Use when writing tests for Godot projects — TDD workflow with GUT and gdUnit4, covers both GDScript and C#
77% 96%+19 ptsof test cases passed
Passed 25 of 26 test cases with the skill, and 20 of 26 without it.
This test ran on v1. v2 is the current version and hasn’t been tested on gemini-3.6-flash yet.
3 of 3 safety checks passed
Not used yet
Reference for skills/godot-testing/SKILL.md — full RED/GREEN/REFACTOR walkthrough with worked example. GDScript + C#.
← Back to SKILL.md
Write the test before the implementation exists. The test must fail for the right reason (missing class or wrong behavior — not a syntax error).
# tests/unit/test_health_component.gd
extends GutTest
var _health: HealthComponent
func before_each() -> void:
_health = HealthComponent.new()
_health.max_health = 100
add_child_autofree(_health)
func test_starts_at_max_health() -> void:
assert_eq(_health.current_health, 100)
func test_take_damage_reduces_health() -> void:
_health.take_damage(30)
assert_eq(_health.current_health, 70)
func test_cannot_go_below_zero() -> void:
_health.take_damage(200)
assert_eq(_health.current_health, 0)
func test_heal_restores_health() -> void:
_health.take_damage(50)
_health.heal(20)
Skills that do similar work, with their benchmark result.
Next to this one in the catalogue, plus more from the same author.