r/truegamedev • • Jan 14 '14

Unit testing

I was wondering does anyone use unit testing in game dev? It's something that my team has been considering but I'm not sure I see the value in games.

There are so few "units" in our code base I'm not sure it would work out. What do other people think?

Now functional testing is a better fit and validating data is very useful so we may start to implement those.

19 Upvotes

14 comments sorted by

View all comments

Show parent comment

1

u/boccy Jan 14 '14

Yeah that makes a lot of sense. It'll be interesting getting it up and running :)

1

u/brtt3000 Jan 15 '14

I recommend to build core business logic in testable chunks. The dry data crunching or bookkeeping stuff. This so you dont have to debug it in-game.