Skip to main content
  1. Talks & Workshops/

Building Robust Godot Games with GdUnit4 & GdUnit4Net

Workshop Godotfest25
Table of Contents
Mike Schulze
Mike Schulze
Creator of GdUnit4 & GdUnit4Net testing frameworks

Maintaining code quality in growing Godot projects is challenging. This presentation introduces GdUnit4 and GdUnit4Net, comprehensive testing frameworks that bring professional testing capabilities to Godot development.

I’ll demonstrate practical examples of testing both GDScript and C# code, showing how to test game logic, scenes, and user interactions. Key highlights include:

  • GdUnit4: Embedded testing in the Godot editor with fluent syntax and scene testing
  • GdUnit4Net: v5.0 architecture with 10x performance improvements and full VSTest compatibility
  • Real-world examples: Testing game mechanics and UI systems
  • CI/CD integration: Automated testing workflows

Whether building indie games or enterprise applications, these frameworks provide the foundation for maintainable, bug-free code. Attendees will gain practical knowledge to immediately implement robust testing practices, reducing debugging time and improving code confidence.

Session Format
#

Format: 45-minute presentation with live coding demonstrations

Target Audience
#

  • Primary: Godot developers (beginner to advanced) interested in improving code quality
  • Secondary: Professional game developers seeking robust testing solutions
  • Tertiary: Anyone interested in Test-Driven Development practices in game development

Learning Objectives
#

By the end of this session, attendees will be able to:

  1. Implement TDD workflows in Godot using GdUnit4 and GdUnit4Net
  2. Write comprehensive tests for game logic, scenes, and user interactions
  3. Leverage advanced features like mocking, scene runners, and parameterized tests
  4. Integrate automated testing into their CI/CD pipelines
  5. Debug and maintain large Godot projects with confidence

Session Outline
#

Introduction (5 minutes)
#

  • Personal introduction
  • Why testing matters in game development
  • Overview of GdUnit4 ecosystem

GdUnit4 for GDScript (15 minutes)
#

  • Live Demo: Quick setup and first test
  • Key Features: Fluent syntax, scene testing, embedded inspector
  • Practical Example: Testing a game mechanic

GdUnit4Net for C# (15 minutes)
#

  • Performance Breakthrough: 10x faster execution with smart runtime
  • VSTest Integration: Professional testing with Visual Studio/Rider
  • Live Demo: C# testing with selective Godot runtime usage

Real-World Application (5 minutes)
#

  • Best Practices: Effective test structure
  • CI/CD Integration: Automated testing workflows

Q&A (5+ minutes)
#

  • Quick questions and resources

Technical Requirements
#

  • Hardware: Projector/large screen for live coding demonstrations

Why This Talk Matters for GodotFest25
#

Community Impact
#

  • Addresses Real Needs: Testing is often overlooked in game development
  • Immediate Value: Attendees gain practical, applicable skills
  • Ecosystem Growth: Promotes best practices for the Godot community

Technical Innovation
#

  • Cutting-Edge: GdUnit4Net v5.0 breakthrough in testing performance
  • Professional Standards: Enterprise-grade testing for all developers
  • Cross-Platform: Solutions for both GDScript and C# ecosystems

Speaker Expertise
#

As creator and maintainer of both frameworks, I bring:

  • 4+ years developing and refining these testing solutions
  • Active community of 200+ developers on Discord
  • Production usage in commercial games and projects
  • Continuous innovation with recent major version releases

Summary
#

This presentation offers attendees practical knowledge to immediately improve their Godot development practices. By learning professional testing techniques, developers can build more robust, maintainable games while reducing debugging time and improving code confidence.

60 minutes
English
This session will be recorded

Related

Oh, that UI looks dope—wish it wasn't so hard to read tho
Workshop Godotfest25
Seeing the forest for the trees: How to think about workflows when designing tools
Workshop Godotfest25
Unlocking GDExtension Power: Integrating external C++ Libraries
Workshop Godotfest25
A Peek Under the Hood: Technical Learnings from Halls of Torment
Talk Godotfest25
Antti Tiihonen
Speaker Godotfest25
Art Direction Crash Course (for non-artists)
Talk Godotfest25
Beyond the Loop: A Primer on Interactive Music in Godot
Talk Godotfest25
Building Starfinder: Professional Godot at Scale
Talk Godotfest25
Chris Ridenour
Speaker Godotfest25