GUT
GUT (Godot Unit Test) is a unit testing framework for the Godot Engine, allowing you to write tests for your GDScript code in GDScript. It supports Godot 3 and 4 and provides a simple way to install and use a plethora of asserts and utility methods.
https://github.com/bitwes/GutPreview Images



GUT: Godot Unit Testing Framework
GUT (Godot Unit Test) is a powerful unit testing framework designed specifically for the Godot Engine. It enables developers to write unit tests for their GDScript code directly within the Godot environment. GUT supports both Godot 3 and Godot 4, offering a seamless testing experience across different engine versions.
Key Features
- Simple Installation: Easily install GUT via the Asset Library.
- Comprehensive Assertions: A wide range of asserts and utility methods simplify the test writing process.
- Inner Test Classes: Organize and maintain tests with inner test classes for better context.
- Doubling Support: Full and partial doubling, stubbing, and spies enhance testing capabilities.
- Command Line Interface (CLI): Execute tests via the command line for streamlined workflows.
- Parameterized Tests: Create and run parameterized tests to cover various scenarios.
- JUnit XML Export: Export test results in the standard JUnit XML format for integration with CI/CD pipelines.
- VSCode Extension: Integrate GUT with VSCode using the available extension for running tests directly from the editor.
GUT provides a comprehensive solution for unit testing in Godot, helping developers ensure the quality and reliability of their GDScript code. With its extensive features and easy-to-use interface, GUT is an invaluable tool for any Godot project.