Test With Minimal Project Setup
August 30, 2025 ยท View on GitHub
A minimal example demonstrating the simplest possible gdUnit4Net test setup in a Godot project.

What This Example Shows
This project demonstrates:
- Minimal project structure for gdUnit4Net testing
- Basic .csproj configuration with essential properties and packages
- Simple test class with a basic assertion
- Godot.NET.Sdk integration for testing Godot projects
Files Overview
project.godot- Basic Godot project configurationMinimalTestProjectSetup.csproj- Minimal test project setup with detailed commentsGdUnitTest.cs- Your first gdUnit4Net test demonstrating basic assertions
Key Learning Points
- Project Setup: How to configure a Godot project for gdUnit4Net testing
- Essential Packages: The three core packages needed for gdUnit4Net
- Basic Test Structure: Using
[TestSuite]and[TestCase]attributes - Simple Assertions: Using
AssertThat()for basic string comparison
Running the Tests
- Open the project in your IDE (Rider, Visual Studio, or VS Code)
- Build the project:
dotnet build - Run tests through your IDE's test explorer or use:
dotnet test
Next Steps
After understanding this minimal setup:
- Explore more assertion types in the Basics/Tests folder
- See real-world examples in the Demos folder
- Check the Advanced examples for complex scenarios