Unit Test your project like a pro using GdUnit3. GdUnit3 is a framework for testing Scripts and Scenes within the Godot Editor. This plugin is very useful for test-driven development.
Last Update | github|MikeSchulze|gdUnit3|master |
Author | MikeSchulze and more |
Supported Versions | 3.3 |

Features
- Fully integrated into the Godot editor
- Run test-suite(s) by using the context menu on FileSystem, ScriptEditor or GdUnitInspector
- Create test’s directly from the script editor
- Configurable template for the creation of a new test-suite
- A spacious set of Asserts use to verify your code
- Argument matchers to verify the behavior of a function call by a specified argument type
- Fluent syntax support
- Test Fuzzing support
- Mocking a class to simulate the implementation which you define the output of the certain function
- Spy on an instance to verify that a function has been called with certain parameters
- Mock or Spy on a Scene
- Provides a scene runner to simulate interactions on a scene
- Simulate by Input events like mouse and/or keyboard
- Simulate scene processing by a certain number of frames
- Simulate scene processing by waiting for a specific signal
- Update Notifier to install the latest version from GitHub
- Command Line Tool
- CI – Continuous Integration support
Installation
- Select the tab AssetLib in the middle on the top
- Enter GdUnit3 in the search bar
- Select GdUnit3 and press the install button
- Finally, you have to activate the plugin
Usage
# this assertion succeeds
assert_int(13).is_not_negative()
# this assertion fail because the value '-13' is negative assert_int(-13).is_not_negative()
License
MIT
Extra
Nothing yet. If you want to recommend a tutorial resource for this, use the suggestions page.