beehave
beehave copied to clipboard
Unit tests with GUT (Godot 4.0 only)
Currently, there is no way of telling if a change will break this addon or not. Introduce unit tests to ensure that any new PR will not break existing logic.
This should only apply to the godot-4.x
branch since maintaining two separate versions of GUT is difficult to maintain and once Godot 4 launches, the godot-3.x
branch goes into maintenance mode.
https://github.com/bitwes/Gut/tree/godot_4
Which unit testing framework would you recommend? Currently I'm aware of GUT - https://github.com/bitwes/Gut and WAT - https://github.com/AlexDarigan/WAT There may be other ones as well
I ported GUT to Godot 4 so we should use that one!
https://github.com/bitwes/Gut/tree/godot_4
I ported GUT to Godot 4 so we should use that one!
https://github.com/bitwes/Gut/tree/4.0
Do you mean https://github.com/bitwes/Gut/tree/godot_4 ?
@creadicted good catch! It got renamed.
I discovered https://github.com/MikeSchulze/gdUnit4 and that one looks much more promising. I will raise a PR soon to add these tests!
Added a first set of unit tests here: https://github.com/bitbrain/beehave/pull/105