# godot-gdunit-labs/gdUnit4

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

Repository: https://github.com/godot-gdunit-labs/gdUnit4
Canonical: https://ross.abutalabs.com/products/gdunit4
Homepage: https://godot-gdunit-labs.github.io/gdUnit4/latest/
Language: GDScript
License: MIT
License Family: permissive
Topics: test-automation, testing, testing-tools, unit-test, unittest, unittest-framework, game-development, gdscript, gdunit4, godot4, mocking, scene-testing
Last push: 2026-08-25T07:16:30+00:00

## Health v2 (maintenance only)
Score: 99/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 98, longevity 100
- inputs: {"age_days": 1428, "days_push": 8, "days_rel": 13, "gap_med": 24.0, "n_releases_24m": 23}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1216, forks 73 (observed 2026-08-28T04:04:01.283413+00:00)

## What it is
GdUnit4 is an embedded unit testing framework for the Godot 4 game engine, supporting tests written in both GDScript and C#. It integrates directly into the Godot editor with a test inspector, test discovery, extensive fluent assertions, mocking, argument matchers, fuzzing, and scene testing.

## Use cases
- write unit tests for gdscript code in godot 4
- test c# scripts in a godot project
- run test-driven development in godot
- mock dependencies in godot game tests
- test godot scenes and node behavior
- fuzz test functions with random inputs
- run godot tests from the editor or CI

## When to choose
- you develop games or tools with Godot 4.x and need automated testing
- you want tests embedded in the Godot editor with an inspector UI
- you need both GDScript and C# test support
- you want TDD workflows, mocking, and scene testing in one framework

## When to avoid
- you use Godot 3.x or a non-Godot engine
- you need standalone testing outside the Godot editor/runtime
- your project requires a testing framework for non-game applications

## Facets
- artifact type: framework
- maturity: active
- function: testing, mocking, e2e-testing
- domain: testing, developer-tools
- platform: cross-platform, game-engine
- tags: godot, gdscript, csharp, unit-testing, tdd, test-inspector, scene-testing, fuzzing, game-development

## Member repositories
- godot-gdunit-labs/gdUnit4 (main) score 99

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:01.283413+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:17:10.966920+00:00, confidence not recorded.
  - readme: https://github.com/godot-gdunit-labs/gdUnit4 (fetched 2026-08-28T04:04:01.283413+00:00, sha 3c153b8cbe0c)
  - homepage: https://godot-gdunit-labs.github.io/gdUnit4/latest/ (fetched 2026-08-29T12:24:56.727897+00:00, sha 6b6e4c223a01)
- Data as of 2026-08-30T08:39:29.467469+00:00.
