sgut (Simple Godot Unit Test) is a unit test tool for godot(gdscript)
-
Copy sgut.gd to your projects and attach it to a scene.
-
Write foobar_test.gd at anywhere.
func test_pass(t): pass func test_fail(t): t.fail() func test_yield(t): #do something yield(obj,"signal") #do something t.finish()
-
Run the scene.