Please upgrade to the latest version.
6.6.0 has a bug that can, if everything goes wrong just right, delete files in the root of the project. I only saw it happen when running the test suite for Gut and only the test_doubler.gd
test script. I don't recall ever seeing it happen in my own game, but just to be safe you should upgrade.
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.0 and 3.1 compatible (There are some minor issues with 3.1 though, 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.
- It is not required, but you should remove the existing Gut node for any scenes you have that use it and then re-add it and re-configure it. Re-adding will get rid of the caution symbol next to the control (this is due to changes in inheritance, Gut changed from a
WindowDialog
to aControl
) - For the command line, note that the
log
option in the.gutconfig.json
file has changed tolog_level
for consistency.
Gut is provided under the MIT license. License is in addons/gut/LICENSE.md