Incorporating automated testing in game development helps ensure core logic functions correctly despite data modifications from other systems. This post explores unit testing within ECS games, particularly in Unity.Entities. I will share how I write unit tests for key systems and demonstrate how to easily set up testing for games built with Unity ECS, using my game as an example.
Make the code testable, as well as introduce an important principle that improves your architecture by making it cleaner and more flexible