beehave icon indicating copy to clipboard operation
beehave copied to clipboard

Unit tests with GUT (Godot 4.0 only)

Open bitbrain opened this issue 2 years ago • 4 comments

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

bitbrain avatar Jul 18 '22 16:07 bitbrain

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

Nemesis-AS avatar Aug 20 '22 18:08 Nemesis-AS

I ported GUT to Godot 4 so we should use that one!

https://github.com/bitwes/Gut/tree/godot_4

bitbrain avatar Aug 21 '22 08:08 bitbrain

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 avatar Sep 08 '22 13:09 creadicted

@creadicted good catch! It got renamed.

bitbrain avatar Sep 08 '22 16:09 bitbrain

I discovered https://github.com/MikeSchulze/gdUnit4 and that one looks much more promising. I will raise a PR soon to add these tests!

bitbrain avatar Dec 12 '22 18:12 bitbrain

Added a first set of unit tests here: https://github.com/bitbrain/beehave/pull/105

bitbrain avatar Jan 26 '23 20:01 bitbrain