Run gdUnit4 tests for Godot projects. Use after implementing features, fixing bugs, or modifying GDScript files to verify correctness.
/plugin marketplace add minami110/claude-godot-tools/plugin install minami110-gdunit4-toolkit-gdunit4-toolkit@minami110/claude-godot-toolsThis skill inherits all available tools. When active, it can use any tool Claude has access to.
scripts/run_test.shRun GDUnit4 tests using the test wrapper script.
Run tests using the wrapper script included in this skill (scripts/run_test.sh).
scripts/run_test.sh
Scans entire project for tests.
scripts/run_test.sh tests/test_foo.gd
scripts/run_test.sh tests/test_foo.gd tests/test_bar.gd
scripts/run_test.sh tests/application/
scripts/run_test.sh -v
Shows all Godot logs (useful for debugging test issues).
The script outputs test results in JSON format for easy parsing.
{
"summary": {
"total": 186,
"passed": 186,
"failed": 0,
"crashed": false,
"status": "passed"
},
"failures": []
}
{
"summary": {
"total": 10,
"passed": 8,
"failed": 2,
"crashed": false,
"status": "failed"
},
"failures": [
{
"class": "TestClassName",
"method": "test_method_name",
"file": "res://tests/test_file.gd",
"line": 42,
"expected": "expected_value",
"actual": "actual_value",
"message": "FAILED: res://tests/test_file.gd:42"
}
]
}
{
"summary": {
"total": 5,
"passed": 3,
"failed": 0,
"crashed": true,
"status": "crashed"
},
"crash_details": {
"crash_info": "handle_crash: Program crashed with signal 11\n...",
"script_errors": "SCRIPT ERROR: Parse Error: ...\n...",
"engine_errors": "ERROR: Failed to load script ...\n..."
},
"failures": []
}
Godot crashed during test execution. Only tests completed before crash are reported.
The crash_details object includes:
crash_info: Crash signal and C++ backtrace (if available)script_errors: GDScript parse errors with file paths and line numbersengine_errors: Engine-level errors (resource loading failures, etc.)reports/ directory