Press play - know it works: Automated testing in Godot
Godotneers
0:00 / 0:00
Press play - know it works: Automated testing in Godot
15 650 просмотров · 1 год назад
Godotneers
53 тыс. подписчиков
15 650 просмотров · 1 год назад
Hello Godotneers! In this video, we're going to explore how we can use automated tests to catch bugs early and test our game logic quickly without having to do hours of manual clicking. We'll start with a quick overview of what tools we can use and how to write a simple test. We're going to look at how to structure our game so it becomes easily testable and we're going to look into some tips and tricks on how we can write our tests so they are better maintainable. And at the end we're going to try to test a whole game from start to finish. It's going to be a fun ride so fire up Godot and learn how to automate the testing of your game.
Table of contents
=======================
00:00 Introduction
01:15 Installing GDUnit
02:46 GDUnit configuration
03:48 The first test
06:45 Running tests
08:53 Testing player movement
10:58 Simulating input
13:11 Avoiding duplicated test code
15:10 Repeating the same test with different input
17:09 Making the game testable
23:31 Testing gameplay
26:44 3D game overview
30:05 3D component test setup
32:45 A base class for our tests
34:45 Testing the trigger plate
36:01 Waiting for signals
37:11 Adding indicators to for debugging
39:37 Testing NPC behaviour
42:20 Movement detectors
44:35 Testing NPC path following
47:13 Testing NPC player interaction
50:11 Handling timing
55:25 Speeding up tests
56:20 Testing a whole level
1:06:10 Introducing and fixing a bug
1:07:30 Tips and tricks
1:11:25 Conclusion
Useful links
==========
The example project we use in this video: https://github.com/godotneers/testing...
GDUnit documentation: https://mikeschulze.github.io/gdUnit4/
If you'd like, you can support me - https://ko-fi.com/derkork