Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. Godot
  3. GdUnit4

GdUnit4

MITGDScriptv6.1.3

An embedded unit testing framework for Godot 4, supporting GDScript and C# with TDD, mocking, and scene testing.

Visit WebsiteGitHubGitHub
1.0k stars65 forks0 contributors

What is GdUnit4?

GdUnit4 is an embedded unit testing framework for the Godot 4 game engine. It allows developers to write and run automated tests for GDScript and C# code, as well as interactive scenes, directly within the Godot editor. It solves the problem of ensuring code quality and preventing regressions in Godot projects through comprehensive testing tools.

Target Audience

Godot developers and teams building games or applications with Godot 4 who want to implement automated testing, test-driven development (TDD), or integrate testing into their CI/CD pipelines.

Value Proposition

Developers choose GdUnit4 because it is the most feature-complete, integrated testing solution for Godot 4, offering a rich set of tools like mocking, scene runners, and CI support that are not available in Godot's built-in testing tools.

Overview

Embedded unit testing framework for Godot 4 supporting GDScript and C#. Features test-driven development, embedded test inspector, extensive assertions, mocking, scene testing.

Use Cases

Best For

  • Implementing test-driven development (TDD) in Godot 4 projects
  • Testing interactive Godot scenes with simulated user input
  • Writing unit tests for both GDScript and C# scripts in the same project
  • Integrating automated testing into a CI/CD pipeline for a Godot game
  • Mocking dependencies and spying on function calls in Godot tests
  • Generating detailed HTML or JUnit XML test reports for team review

Not Ideal For

  • Projects still using Godot 3.x or earlier versions
  • Teams requiring a testing framework that runs completely independently of the Godot editor
  • Developers who prefer minimalist, no-frills testing tools without advanced features like mocking or fuzzing

Pros & Cons

Pros

Seamless Editor Integration

Tests are embedded directly in the Godot editor with features like right-click test creation and an integrated test inspector, streamlining the development workflow without context switching.

Multi-Language Testing Support

Supports both GDScript and C# with dedicated APIs and VSTest integration for C#, enabling consistent testing across mixed-language Godot projects.

Advanced Scene Testing

Includes a scene runner for simulating user inputs like mouse, keyboard, and touch, along with mocking and spying capabilities, making it ideal for testing interactive Godot scenes and complex logic.

CI/CD Pipeline Ready

Provides command-line tools with HTML and JUnit XML report generation, plus a dedicated GitHub Action, facilitating easy integration into continuous integration workflows.

Cons

Godot Version Fragility

The compatibility table shows tight coupling with specific Godot 4.x versions; updates to Godot can require matching GdUnit4 updates, risking breaking changes or maintenance delays.

Complex C# Setup

Setting up GdUnit4 for C# requires additional configuration steps as per a separate documentation page, which can be cumbersome for developers unfamiliar with Godot's C# ecosystem.

Limited External Flexibility

Being deeply embedded in Godot means tests cannot run in isolation without the editor, which may not suit environments requiring lightweight, headless testing or integration with non-Godot tools.

Frequently Asked Questions

Quick Stats

Stars1,039
Forks65
Contributors0
Open Issues8
Last commit21 hours ago
CreatedSince 2022

Tags

#unit-test#gdscript#unit-testing#csharp#tdd#mocking#game-development#ci-cd#testing#test-automation#testing-tools#test-framework#godot4#unittest#godot-engine

Built With

G
GDScript
C
C++

Links & Resources

Website

Included in

Godot9.7k
Auto-fetched 6 hours ago

Related Projects

PixeloramaPixelorama

Unleash your creativity with Pixelorama, a powerful and accessible open-source pixel art multitool. Whether you want to create sprites, tiles, animations, or just express yourself in the language of pixel art, this software will realize your pixel-perfect dreams with a vast toolbox of features. Available on Windows, Linux, macOS and the Web!

Stars9,443
Forks497
Last commit1 day ago
Godot Demo ProjectsGodot Demo Projects

Demonstration and Template Projects

Stars8,687
Forks2,097
Last commit6 days ago
LorienLorien

Infinite canvas drawing/whiteboarding app for Windows, Linux and macOS. Made with Godot.

Stars6,615
Forks300
Last commit7 months ago
DialogicDialogic

💬 Create Dialogs, Visual Novels, RPGs, and manage Characters with Godot to create your Game!

Stars5,495
Forks325
Last commit1 month ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub