Unit Testing for Unity 101: Theory (Full Lecture with Q&A)
Stop! You have committed crimes against programming. In this lecture, we will give you an introduction to the topic of Unit Testing, why it’s necessary for writing good code, and how to do it. School curriculums usually don’t cover this, especially in Game Design, but Unity codebases can get so huge that even small projects become unmanageable without proper tests in place. Vasil and Anne from Den of Thieves Games will cover why Unit Testing is essential and will show you how to get started with it in Unity. Check the project on GitHub: https://github.com/DenOfThieves/UnitTesting101 Original stream archive: https://www.youtube.com/watch?v=LqTf806s03Q Chapters 0:00 Introduction 2:00 About Den of Thieves Games 3:45 How we use Unit Testing 4:55 Ways of changing code: Edit and Pray 6:59 Ways of changing code: Cover and Modify 8:25 Definition of Unit Test 9:20 Example of a Unit Test 10:00 How to name tests 11:00 Short Q&A 11:37 Question: Unit Testing or break points? 12:54 Where has Unit Testing helped us? 14:00 Is Unit Testing a function that is created? 14:47 Start of Example Code 18:26 When do you implement tests? 21:29 Setting up the Unity Test Framework 22:32 Set up a behavior to test 23:21 Making our first Unit Test 26:26 Making our second Unit Test 27:25 Test cases and code refactoring 33:16 Closing words for the lecture part 39:45 Post-lecture discussion 41:17 The Unity Test Runner 43:07 How much more work is adding tests? 48:21 Excluding test code from builds 49:46 Edit Mode vs Play Mode tests 50:45 Can you test more complex interactions? 52:51 Unit Testing when you’re not an experienced programmer 57:00 Closing words
Download
0 formatsNo download links available.