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:
- Implement TDD workflows in Godot using GdUnit4 and GdUnit4Net
- Write comprehensive tests for game logic, scenes, and user interactions
- Leverage advanced features like mocking, scene runners, and parameterized tests
- Integrate automated testing into their CI/CD pipelines
- 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.