-
Notifications
You must be signed in to change notification settings - Fork 107
Home
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.
As of version 6.0.0 Gut is Godot 3.0 compatible. These changes are not compatible with any of the 2.x versions of Godot. The godot_2x branch has been created to hold the old version of Gut that works with Godot 2.x. Barring any severe issues, there will not be any more development for Godot 2.x.
Here's a couple links to get you started.
Gut is provided under the MIT license. The license is distributed with Gut so it is in the addons/gut
folder.
This testing tool has tests of course. All Gut related tests are found in the test/unit
and test/integration
directories. Any enhancements or bug fixes should have a corresponding pull request with new tests.
The bulk of the tests for Gut are in test_gut.gd and test_test.gd. test_signal_watcher.gd tests the class used to track the emitting of signals. The other test scripts in unit
and integration
should be run and their output spot checked since they test other parts of Gut that aren't easily testabled.
For convenience, the main.tscn
includes a handy "Run Gut Unit Tests" button that will kick off all the essential test scripts.
You can talk to me, Butch Wesley
- Github: bitwes
- Godot forums: bitwes