.. toctree:: :hidden: :maxdepth: 3 :caption: Getting Started :name: sec-started Install Quick-Start Command-Line New-For-Godot-4 .. toctree:: :hidden: :maxdepth: 3 :caption: Test Scripts :name: sec-guttest Creating-Tests Awaiting Inner-Test-Classes Error-Tracking Parameterized-Tests Simulate Comparing-Things .. toctree:: :hidden: :maxdepth: 1 :caption: Doubling :name: sec-doubles Doubles Partial-Doubles Double-Strategy Stubbing Spies Doubling-Singletons .. toctree:: :hidden: :maxdepth: 1 :caption: Other :name: sec-other Export-Test-Results Hooks Memory-Management Mocking-Input Running-On-Devices GDScript-Warnings Contributing .. toctree:: :hidden: :maxdepth: 1 :caption: Class Reference :name: class-ref :glob: Class-Ref class_ref/* Gut 9.6.0 (Godot 4.6) ========= GUT (Godot Unit Test) is a utility for writing tests for your Godot Engine game. It allows you to write tests for your gdscripts in gdscript. GUT/Godot Versions ---------------------- There are only two versions of GUT in the Asset Library. GUT 9 requires Godot 4. GUT 7 requires Godot 3.4. GUT will not appear in the Asset Library if your current version of Godot is less than GUT's required version. The Godot/GUT version list and downlaod links can be found in the repo README https://github.com/bitwes/Gut/blob/main/README.md Getting Started ---------------- * :doc:`Quick-Start ` * :doc:`Install ` * :doc:`GutTest Class ` * :doc:`Creating Tests ` * :doc:`Using Gut at the command line ` Advanced Testing ---------------- * :doc:`Inner Test Classes ` * :doc:`Doubling ` * :doc:`Spies ` * :doc:`Stubbing ` * :doc:`Parameterized Tests ` * :doc:`Simulate ` * :doc:`Coroutines and await in tests ` * :doc:`Pre/Post Run Hooks ` * :doc:`Exporting Results ` * :doc:`Error Tracking ` Editor GUI ---------- .. image:: _static/images/gut_panel.png GUT GUI ------- Normal .. image:: _static/images/GutGui.png Compact .. image:: _static/images/GuiCompact.png Engine Warnings --------------- There are a fair number of warnings that Godot will show related to GUT. Some of the warnings are valid and are being cleaned up overtime. Most of the warnings are not valid and sometimes relate to generated code. As of 3.2 you can disable warnings for addons, and it recommended you do so. .. image:: _static/images/exclude_addons.png License ------- Gut is provided under the MIT license. [The license is distributed with Gut so it is in the `addons/gut` folder](https://github.com/bitwes/Gut/blob/master/addons/gut/LICENSE.md). Contributing ------------ :doc:`Contributing ` Indices and tables ================== * :ref:`genindex` * :ref:`search`