Embedded unit testing framework for Godot 4 supporting GDScript and C#. Features test-driven development, embedded test inspector, extensive assertions, mocking, scene testing.
See the code
![]()
| GdUnit4 Version | Godot minimal required/compatible Version |
|---|---|
| master (v6.2.2) | v4.5, v4.5.1, v4.5.2, v4.6, v4.6.1, v4.6.2, v4.6.3, v4.7, v4.7.1, v4.8.dev7 |
| v6.2.x | v4.5, v4.5.1, v4.5.2, v4.6, v4.6.1, v4.6.2, v4.6.3, v4.7, v4.7.1 |
| v6.1.x | v4.5, v4.5.1, v4.5.2, v4.6, v4.6.1, v4.6.2, v4.6.3 |
| v6.0.x+ | v4.5, v4.5.1, v4.5.2 |
| v5.x+ | v4.3, v4.4, v4.4.1 |
| v4.4.0+ | v4.2.0, v4.3, v4.4.dev2 |
| v4.3.2+ | v4.2.0, v4.3 |
| v4.3.0, v4.3.1 | v4.2.0 |
| v4.2.1-v4.2.5 | v4.1.0 |
| v4.2.0 and older | v4.0 |
Gd(Godot)Unit(Unit Testing)4(Godot 4.x)
GdUnit4 is an embedded unit testing framework designed for testing Gd scripts, C# scripts, and scenes in the Godot editor.
With GdUnit4, you can easily create and run unit tests to verify the functionality and performance of your code, ensuring
that it meets your requirements and specifications.
GdUnit4 is a powerful tool that supports Test-Driven Development (TDD), a popular software development
approach that emphasizes creating automated tests before writing any code. By using GdUnit4 for TDD, you can
ensure that your code is thoroughly tested and free of bugs, which can save you time and effort in the long run.
class_name GdUnitExampleTest
extends GdUnitTestSuite
func test_example():
assert_str("This is an example message")\
.has_length(26)\
.starts_with("This is an ex")
This excellent example is provided by Godotneers and demonstrates how to effectively test your game scenes using GDUnit4. The video walks through practical automated testing techniques that can help improve your Godot project's reliability and maintainability.
How to Install the GdUnit4 plugin
GdUnit is comprehensively tested to ensure robust functionality.
Continuous Integration (CI) is in place for every pull request to prevent any potential functionality issues.
🙏 Special Thanks to @Scony for creating gdlint, a valuable tool contributing to code quality.
Thank you for your interest in contributing to GdUnit4!
To ensure a smooth and collaborative contribution process, please review our
contribution guidelines before getting started.
These guidelines outline the standards and expectations we uphold in this project.
Code of Conduct:
We strictly adhere to the Godot code of conduct in this project.
As a contributor, it is important to respect and follow this code to maintain a positive and inclusive community.
Using GitHub Issues:
We utilize GitHub issues for tracking feature requests and bug reports.
If you have a general question or wish to engage in discussions, we recommend joining the GdUnit Discord Server for specific inquiries.
We value your input and appreciate your contributions to make GdUnit4 even better!
miguel a.k. bitbrain
Sebastian Hutter
Rafael Guerreiro
Sven Teigler
(top 24 of 26)
1,091 followers · starred Nov 2022
966 followers · starred Nov 2023
843 followers · starred Jun 2026
208 followers · starred Nov 2022
Embedded unit testing framework for Godot 4 supporting GDScript and C#. Features test-driven development, embedded test inspector, extensive assertions, mocking, scene testing.
See the code
![]()
| GdUnit4 Version | Godot minimal required/compatible Version |
|---|---|
| master (v6.2.2) | v4.5, v4.5.1, v4.5.2, v4.6, v4.6.1, v4.6.2, v4.6.3, v4.7, v4.7.1, v4.8.dev7 |
| v6.2.x | v4.5, v4.5.1, v4.5.2, v4.6, v4.6.1, v4.6.2, v4.6.3, v4.7, v4.7.1 |
| v6.1.x | v4.5, v4.5.1, v4.5.2, v4.6, v4.6.1, v4.6.2, v4.6.3 |
| v6.0.x+ | v4.5, v4.5.1, v4.5.2 |
| v5.x+ | v4.3, v4.4, v4.4.1 |
| v4.4.0+ | v4.2.0, v4.3, v4.4.dev2 |
| v4.3.2+ | v4.2.0, v4.3 |
| v4.3.0, v4.3.1 | v4.2.0 |
| v4.2.1-v4.2.5 | v4.1.0 |
| v4.2.0 and older | v4.0 |
Gd(Godot)Unit(Unit Testing)4(Godot 4.x)
GdUnit4 is an embedded unit testing framework designed for testing Gd scripts, C# scripts, and scenes in the Godot editor.
With GdUnit4, you can easily create and run unit tests to verify the functionality and performance of your code, ensuring
that it meets your requirements and specifications.
GdUnit4 is a powerful tool that supports Test-Driven Development (TDD), a popular software development
approach that emphasizes creating automated tests before writing any code. By using GdUnit4 for TDD, you can
ensure that your code is thoroughly tested and free of bugs, which can save you time and effort in the long run.
class_name GdUnitExampleTest
extends GdUnitTestSuite
func test_example():
assert_str("This is an example message")\
.has_length(26)\
.starts_with("This is an ex")
This excellent example is provided by Godotneers and demonstrates how to effectively test your game scenes using GDUnit4. The video walks through practical automated testing techniques that can help improve your Godot project's reliability and maintainability.
How to Install the GdUnit4 plugin
GdUnit is comprehensively tested to ensure robust functionality.
Continuous Integration (CI) is in place for every pull request to prevent any potential functionality issues.
🙏 Special Thanks to @Scony for creating gdlint, a valuable tool contributing to code quality.
Thank you for your interest in contributing to GdUnit4!
To ensure a smooth and collaborative contribution process, please review our
contribution guidelines before getting started.
These guidelines outline the standards and expectations we uphold in this project.
Code of Conduct:
We strictly adhere to the Godot code of conduct in this project.
As a contributor, it is important to respect and follow this code to maintain a positive and inclusive community.
Using GitHub Issues:
We utilize GitHub issues for tracking feature requests and bug reports.
If you have a general question or wish to engage in discussions, we recommend joining the GdUnit Discord Server for specific inquiries.
We value your input and appreciate your contributions to make GdUnit4 even better!
miguel a.k. bitbrain
Sebastian Hutter
Rafael Guerreiro
Sven Teigler
(top 24 of 26)
1,091 followers · starred Nov 2022
966 followers · starred Nov 2023
843 followers · starred Jun 2026
208 followers · starred Nov 2022