Skip to content

Godot: testing

Automated tests for Godot projects with GUT or gdUnit4, the design that makes code testable, keeping tests out of exports, and running tests in CI. The engine-independent testing rules are in Testing and delivery.

Entries are sorted by score from 1 to 10 (criteria): 9โ€“10 start here or strongly recommended, 6โ€“8 recommended, 1โ€“5 further reading or conditional.

Adopted references

  • 6 GUT documentation (GUT, Godot Unit Test): writing tests in GDScript, doubles, stubs and spies, awaiting and simulating frames, memory checks, and the command line.
  • 6 gdUnit4 documentation (gdUnit4): tests in GDScript and C#, fluent assertions, mocks and spies, the Scene Runner, orphan node detection, and the command-line tool and GitHub Action for CI.

Key rules

How to enforce

Tools that check the key rules above automatically, in CI, the IDE or a commit hook. "Partly" means the tool covers only some of what the rule asks.