Godot Unit Test. Unit testing tool for Godot Game Engine.
Full Changelog: https://github.com/bitwes/Gut/compare/v7.4.2...v7.4.3
var foo := Foo.new()
where foo is a class_name
in another script) could cause errors.Full Changelog: https://github.com/bitwes/Gut/compare/v9.2.0...v9.2.1
GutTest
.Full Changelog: https://github.com/bitwes/Gut/compare/v7.4.1...v7.4.2
user://
instead of res://
. This file changes a lot and is very annoying with version control and teams that have more than one person (which is all teams since there is no "I" in team).
user://gut_temp_directory/gut_editor_config.json
user://gut_temp_directory/gut_editor_shortcuts.cfg
user://
have been moved to user://gut_temp_directory
for better house keeping.assert_almost_eq
, assert_almost_ne
, assert_between
and assert_not_between
.gui_input
signal on receivers.user://
now.user://
to user://gut_temp_directory
.Full Changelog: https://github.com/bitwes/Gut/compare/v9.1.1...v9.2.0
_ready
and you try to spy on it, your test will now fail since _ready
is virtual and you didn't overload it.rpc_id
, emit_signal
). If you call a doubled method that has a vararg argument and you have not stubbed param_count
on the object's script then a warning is generated.SCRIPT_ONLY
(a bug caused it to change). Due to how the Godot Engine calls native methods, the overrides may not be called by the engine so spying and stubbing may not work in some scenarios.INCLUDE_SUPER
has been renamed to INCLUDE_NATIVE
.INCLUDE_SUPER
, it will use SCRIPT_ONLY
.GutControl
to aid in running tests in a deployed game. Instructions and sample code can be found in the wiki.GutTest
.is_processing
and is_physics_processing
when running thier respective methods.Fixed a bug where you could not double
scripts that used the new Godot 4 accessors.
This is the initial release of GUT for Godot 4.0. Going forward, GUT 9+ will support Godot 4. GUT 7+ will support Godot 3.x.
GUT 9.0.0 will live in the godot_4
branch of the repo. Eventually it will move to main
as Godot 3.x support is not needed. You should read Gut's Godot 4 README for information about what has changed.
rect_min_size
to custom_minimum_size
, set for bottom panel by @aaronfranke in https://github.com/bitwes/Gut/pull/417
--script
by @aaronfranke in https://github.com/bitwes/Gut/pull/419
Full Changelog: https://github.com/bitwes/Gut/compare/v7.3.0...v9.0.0
var dbl = double(MyClass).new(1, 2, 'c')
_init
to verify parameter values:assert_called(my_inst, '_init', [1, 2, 'c'])
_init
:stub(MyClass, '_init').param_defaults([1, 2, 'c'])
_foo.gd
.yield
in a test does not cause a .4 second delay.WebSocketClient
and anything with a PoolStringArray
default value.auto_flush_input
to InputSender
to address that Input.use_accumulate_input
is enabled by default in Godot 3.5.0.