Doing basic unit testing in Unity/C#
How can we automatically check if our game code works properly?
🚀 Find all of my Unity tutorials on Github!
This tutorial is available either in video format or in text format — see below :)
Get the scripts and assets for this tutorial on my Github :)
In this article, we’re going to see what unit testing is and how we can use the Unity Test Framework package to run our C# unit tests.
Disclaimer: before we dive into this video, however, a big shout out to Andrew, a very kind viewer who helped me come up with the topic of today’s episode. If you too want to suggest your own ideas for the next tutorial, feel free to leave a comment! :)
And with that said — let’s jump in!
About unit testing
Some definitions
Alright: first things first, let’s recall some definitions and discuss what unit testing is about.