GUT (Godot Unit Test) is a utility for writing tests for your Godot Engine game. It allows you to write tests for your gdscript in gdscript.
- Godot 3.2, 3.1, and 3.0 compatible (There are some very minor issues with 3.1 check them out here).
- Simple install via the Asset Library.
- A plethora of asserts and utility methods to help make your tests simple and concise.
- Support for Inner Test Classes to give your tests some extra context and maintainability.
- Doubling: Full and Partial
- Stubbing
- Spying
- Export tests with your project and run them on any platform Godot supports.
- Command Line Interface (CLI)
- Integration testing made easier with
yield
s
More info can be found in the wiki.
Run your tests directly from the VSCode Editor. Search VSCode extensions for "gut-extension".
Gut is provided under the MIT license. License is in addons/gut/LICENSE.md