gdunit-driver

Solid

Run gdUnit4 unit tests and parse results into structured output. Use this skill after writing or modifying code to verify correctness via unit tests, when diagnosing test failures, or when writing new test files. Triggers: "run tests", "test fails", "write a test", any gdUnit4/unit test mention. Supports both GDScript (.gd) and C# (.cs) test files.

AI & Automation 495 stars 43 forks Updated today NOASSERTION

Install

View on GitHub

Quality Score: 81/100

Stars 20%
90
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# gdUnit4 Test Driver $ARGUMENTS ## 1. Locate the Godot executable Read the path from the project's config file. This avoids hardcoding paths that differ per machine. ```bash # From the project root: python tools/agent_runtime.py godot_path ``` ## 2. Run tests The CLI runner across all supported versions (v4.x, v5.x, v6.x) is `addons/gdUnit4/bin/GdUnitCmdTool.gd`. The path uses capital-U `gdUnit4/` to match the upstream repo layout — Windows is case-insensitive but Godot's global script registry de-duplicates by exact path string, so a casing mismatch between the runner invocation and the on-disk directory triggers `Class "..." hides a global script class` parse errors and a non-zero exit. ```bash # Single file "<godot_path>" --headless -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd \ --add res://test/test_example.gd --ignoreHeadlessMode # Multiple files "<godot_path>" --headless -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd \ --add res://test/test_physics.gd --add res://test/test_spawner.gd \ --ignoreHeadlessMode # All tests in a directory "<godot_path>" --headless -s res://addons/gdUnit4/bin/GdUnitCmdTool.gd \ --add res://test/ --ignoreHeadlessMode ``` Notes: - Include `--ignoreHeadlessMode` for headless runs. - Use `--add` to enqueue test files or directories (repeat the flag for multiples). - Runner path needs the `res://` prefix and the capital-U `addons/gdUnit4/` casing. - No `::method` syntax for single test methods — run the whole file instead. ### C# ...

Details

Author
RandallLiuXin
Repository
RandallLiuXin/GodotMaker
Created
3 months ago
Last Updated
today
Language
Python
License
NOASSERTION

Similar Skills

Semantically similar based on skill content — not just same category