Gut 7.3.0
GUT (Godot Unit Test) is a unit testing framework for the Godot Engine. It allows you to write tests for your gdscript in gdscript.
Donate/Shameless Plug
If you would like to help support GUT check out my game Country or State on Android and iOS. Then, purchase the full version even if you don't like it. Thanks!
Features
- Godot 3.2.x, 3.3.x, 3.4.x compatible.
- 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, Spies
- Command Line Interface (CLI)
- Parameterized Tests
- Export results in standard JUnit XML format.
- Distribute your tests with your project and run them on any platform Godot supports.
More info can be found in the wiki.
Getting Started
VSCode Extension
Run your tests directly from the VSCode Editor. Search VSCode extensions for "gut-extension". The plugin has commands to run your entire test suite, a single test script or a single test.
License
Gut is provided under the MIT license. License is in addons/gut/LICENSE.md
Tutorials
- TDD and P O N G Series
- Wiki list of tutorials https://github.com/bitwes/Gut/wiki/Tutorials