GdUnit3

GdUnit3 is a Godot editor plugin that provides a unit testing framework for GDScript and C# scripts, enabling test-driven development. Note: GdUnit3 is no longer maintained; consider using GdUnit4 for Godot 4 projects.

https://github.com/MikeSchulze/gdUnit3

Preview Images

Preview
Preview

GdUnit3: Unit Testing Framework for Godot

GdUnit3 is a powerful tool for Godot Engine that allows developers to perform unit testing directly within the editor. It supports both GDScript and C#, facilitating a test-driven development approach to ensure robust and bug-free code. GdUnit3 offers a comprehensive suite of features, including test suite management, assertion libraries, mocking, and CI integration.

Key Features

  • Embedded in Godot Editor: Seamlessly integrates with the Godot editor, allowing you to create and run tests without leaving the environment.
  • Test Suite Management: Easily create and manage test suites from the FileSystem, ScriptEditor, or GdUnitInspector.
  • Comprehensive Assertions: Provides a wide range of assertions to verify code behavior, including argument matchers and fluent syntax support.
  • Mocking and Spying: Mock classes and spy on instances to simulate dependencies and verify function calls.
  • Scene Runner: Simulate scene interactions with input events and frame processing.
  • CI Support: Integrates with continuous integration systems, generating HTML and JUnit reports.

Important Note

GdUnit3 is no longer actively maintained. While it remains functional, no new features or bug fixes will be implemented. Developers are encouraged to migrate to GdUnit4, which is designed for Godot 4.

Resource Details

tool

MikeSchulze



3