.. 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 class_ref/class_guttest Creating-Tests Awaiting Inner-Test-Classes Parameterized-Tests Simulate Comparing-Things .. toctree:: :hidden: :maxdepth: 1 :caption: Doubling :name: sec-doubles Doubles Partial-Doubles Double-Strategy Stubbing Spies .. toctree:: :hidden: :maxdepth: 1 :caption: Other :name: sec-other Contributing GDScript-Warnings Export-Test-Results Hooks Memory-Management Mocking-Input Orphans Running-On-Devices Tutorials .. toctree:: :hidden: :maxdepth: 1 :caption: Class Reference :name: class-ref :glob: Class-Ref class_ref/* Gut 9.4.0 (Godot 4.2) ========= 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. Godot 3.x/4.x -------------- GUT 9 requires Godot 4. GUT 7 requires Godot 3.4. 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 ` 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`