Uploaded March 2021 | Updated November 2026, 6 hours ago
In this Godot video tutorial, we learn how to install and use Gut to write tests. Gut is a fantastic library that makes it easy to write and run unit/integration tests for Godot projects. Whether you've done some testing and TDD before, or you're totally new to it, I hope this video helps you get started with the practice in Godot.
⭐️ Get early access to my full JS Game Dev course:
drew-conley-courses.kit.com/66eb6d3ff4
💬 Join our Discord community of people making video games:
discord.gg/umD2GRy
00:00:00 - Intro to GUT
00:01:14 - TDD
00:01:30 - Installing GUT
00:02:30 - TestRunner
00:03:55 - Adding test files
00:05:20 - Writing test methods
00:06:37 - loading Character scene in tests
00:08:12 - assertions
00:09:05 - first failing test
00:09:45 - starting realistic situations
00:10:20 - Red, Green, Refactor
00:11:39 - HP assertions
00:12:42 - before_each, after_each
00:14:00 - fixing orphan errors
00:15:40 - Passing second test
00:16:00 - Refactoring second implementation
00:17:05 - Adding a shield before HP
00:18:42 - Passing the shield test
00:20:00 - GUT is fast
*** Links ***
Gut:
github.com/bitwes/Gut
Demo code:
assets.codepen.io/21542/TDD+with+Gut+demo+code.zip
In this Godot video tutorial, we learn how to install and use Gut to write tests. Gut is a fantastic library that makes it easy to write and run unit/integration tests for Godot projects. Whether you've done some testing and TDD before, or you're totally new to it, I hope this video helps you get started with the practice in Godot.
⭐️ Get early access to my full JS Game Dev course:
drew-conley-courses.kit.com/66eb6d3ff4
💬 Join our Discord community of people making video games:
discord.gg/umD2GRy
00:00:00 - Intro to GUT
00:01:14 - TDD
00:01:30 - Installing GUT
00:02:30 - TestRunner
00:03:55 - Adding test files
00:05:20 - Writing test methods
00:06:37 - loading Character scene in tests
00:08:12 - assertions
00:09:05 - first failing test
00:09:45 - starting realistic situations
00:10:20 - Red, Green, Refactor
00:11:39 - HP assertions
00:12:42 - before_each, after_each
00:14:00 - fixing orphan errors
00:15:40 - Passing second test
00:16:00 - Refactoring second implementation
00:17:05 - Adding a shield before HP
00:18:42 - Passing the shield test
00:20:00 - GUT is fast
*** Links ***
Gut:
github.com/bitwes/Gut
Demo code:
assets.codepen.io/21542/TDD+with+Gut+demo+code.zip










