Back to Tools
Testing and debugging

GUT

By bitwes

Test GDScript in Godot with assertions, doubles and stubs, then rerun suites in the editor or CLI after gameplay changes.

repo

Start: Install through Godot AssetLib, or put gut under addons, then enable it in Project Settings → Plugins.

Try: Create res://test/unit/test_example.gd extending GutTest, add a test_ function and assertion, configure the test directory and click Run All. Doubles and stubs isolate dependencies; the CLI can rerun the suite outside the editor.

Compatibility: The reviewed docs identify GUT 9.6.1 with Godot 4.6. GUT 9 targets Godot 4; GUT 7 requires Godot 3.4. Check the exact release rather than assuming all minor versions match.

Documentation and sources: https://gut.readthedocs.io/en/latest/Quick-Start.html · https://gut.readthedocs.io/en/latest/Install.html · https://gut.readthedocs.io/en/latest/

View source