TGViewer
Everyday Unity Everyday Unity @everydayunity · 1.18K subscribers
Post #2316 591
Unit Testing Made Easy: How I Test My Game Made With Unity ECS

I haven't posted on my blog for a while, partly because I've been investing time in developing my game, which is still in its very early stages. Nonetheless, I wanted to share how I write unit tests for this game, built using Unity.Entities – an ECS implementation by Unity itself. It's not rocket science, but I did spend some time setting it up, so you don't have to invest your own if you plan to add automated tests to your ECS-based game.

What I find even more interesting is setting up performance tests for the same project and the benefits it brings. I'm planning to share this as the second post in this series soon, so stay tuned.

https://gamedev.center/unit-testing-made-easy-unity-ecs-best-practices/

A sample repo which will be extended with performance tests for the second post: https://github.com/AlexMerzlikin/UnityEntities-AutomatedTests-Sample

#ecs #dots #testing
gamedev.center Unit Testing Made Easy: Unity ECS Best Practices Explore unit testing within Unity ECS games. Check how I write unit tests for systems in my roguelite game and how to easily set up testing for your game.
  • 🔥 6
  • 👍 3
More from @everydayunity
  1. Sep 24, 2026Now you can change the effort mid session in new Claude. So the advice about caching from…
  2. Sep 24, 2026We were wondering in the comments what Claude reset does. Here is the answer https://www.r…
  3. Sep 22, 2026Introducing GPT‑6 Sol and Luna And better & cheaper sol and luna as an immediate response…
  4. Sep 22, 2026Introducing Claude Opus 5.5 \ Anthropic Cost and speed. Opus 5.5 requires less compute to…
  5. Sep 21, 2026Claude Code effort level and model selection effort means more than just "thinking time."…
  6. Sep 19, 2026Netcode for GameObjects 3.0.0 is now available It is preparation for Unity’s shared Netcod…
Threads Profile ViewerView any public Threads profile without an account.Open ThreadLook →Writing with AI? Make it sound human.Metric37 rewrites AI drafts so they read naturally. Free AI detector, 1,500 words free.Try Metric37 →