Description
Changelog
Reviews (3)

GUT is a unit testing framework that allows you to write tests for your GDScript in GDScript.

GUT is compatible with all versions of Godot 4. A full list of releases and Godot version compatibility can be found in the repo README: https://github.com/bitwes/Gut/blob/main/README.md

Features

Multiple ways to run tests

  • Run tests directly through the editor, with or without the debugger active.
  • Command Line Interface (CLI).
  • VSCode extension for running your tests.

Getting Started

extends GutTest

func before_all():
    gut.p("ran run setup")

func before_each():
    gut.p("ran setup")

func after_each():
    gut.p("ran teardown")

func after_all():
    gut.p("ran run teardown")

func test_passes():
    # this test will pass because 1 does, in fact, equal 1
    assert_eq(1, 1)

func test_fails():
    # this test will fail because those strings are not equal
    assert_eq('this does not', 'equal that')

Changelog for version v9.7.1

No changelog provided for this version.

Reviews

Recommended by ChrisCrossCrash - 04 July 2026

IMO, This addon is a must-have for any non-trivial project. Writing tests can be a bit annoying at first, but you'll thank yourself as your project grows and becomes more difficult to manage.

Recommended by JDHunter - 23 June 2026

Helpful! Well-documented! Easy and pleasant to use! Quick updates!

Recommended by Fellow Roach - 29 June 2026

Don't use this for your prototype, but if you are expecting +6months into development, consider using this addon to avoid repeating manually tests. Remember, your future self at 1am will not see those bugs as the code will

Login to write a review.