Sign in to follow this  

Test Driven Development and Games

This topic is 1879 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

I was wondering if anyone could throw their two cents at me about whether it is worth it to invest my time learning about unit testing and test driven development. The thought occurred to me that perhaps these strategies were not practiced in the game industry, and that individual indies such as myself need not worry about. I was wondering if you could confirm or deny this. If unit testing and test driven development are two concepts that are worth the investment in a long term sense, then I will learn them. If not, I will write a game.

What do you think?

-Dave Ottley

Share this post


Link to post
Share on other sites
Unsurprisingly, this has been asked before. One of the better threads is [url=http://www.gamedev.net/topic/632298-tdd-in-game-development/]this one[/url], in particular [url=http://www.gamedev.net/topic/632298-tdd-in-game-development/page__view__findpost__p__4986925]frob's first response[/url] is pretty helpful.

Share this post


Link to post
Share on other sites
[quote name='KingofNoobs' timestamp='1353789950' post='5003814']
I was wondering if anyone could throw their two cents at me about whether it is worth it to invest my time learning about unit testing and test driven development. The thought occurred to me that perhaps these strategies were not practiced in the game industry, and that individual indies such as myself need not worry about. I was wondering if you could confirm or deny this. If unit testing and test driven development are two concepts that are worth the investment in a long term sense, then I will learn them. If not, I will write a game.[/quote]

If you want to learn it, then learn it. If you don't want to learn it, then don't.

TDD is not a difficult thing. You learn to write about ten lines of code, then a 1:1 test-to-development ratio after that. Learning the practice is very easy, you can get started with just an hour or so of effort.

The Tetris TDD example was already linked to above, I recommend it. It takes about 2 hours, less if you are already experienced.

Share this post


Link to post
Share on other sites

This topic is 1879 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this