Hacker News new | ask | show | jobs
by oselhn 2729 days ago
That's not true. From my experience unit tests are great for agile. It will allow you to create "trusted" modules which you can move around and rework much easier (you can also treat your tests as executable documentation). Without tests you can't safely do any change to existing code especially if you are changing code written by someone else. You have to risk it and than spent considerable time in debugger if it breaks something unrelated to your feature.
1 comments

>That's not true. From my experience unit tests are great for agile.

Not when you're constantly prototyping, which is what game dev essentially is for the most part of the process...

> which is what game dev essentially is for the most part of the process...

Except that it isn't. You don't maintain the equal velocity of changes throughout the process, even for indie games. And there are always portions of the game amenable to tests.

Its not like tests are impossible. It's more that TDD is almost impossible.
Changes until the last minute to crucial gameplay elements are not uncommon..
Sure, menus and networking. Maybe loot distribution, level generation, etc.

Not so much actual gameplay though. That does constantly get tweaked.