TDD On Hold

Posted by (twitter: @GBGames)
August 9th, 2008 10:30 pm

I decided that I need more practice with TDD and so skipped quite a few unit tests to get a blank SDL window up that I can close. The 10 passing tests I currently have were great for splitting off a Timer class from my Game class, but I can’t afford to spend too much time making existing functionality work better.

When I start working on the various game entities, I know TDD will be a big help, but for now I have put it on hold to get the really simple run() loop going. Of course, in order to get to the point where I can write more code than the basic boilerplate, I need to sketch out a rough design.

One Response to “TDD On Hold”

  1. kai says:

    I wouldn’t worry about TDD for getting an SDL window up and such. You’re right that it’s great for game entities, but if writing unit tests is at all a struggle, you should write them where you get the best results for now. I’m not sure what TDD says about functional tests, but in my experience, a healthy does of functional tests (maybe a GUI testing framework that acts like a human user) with lots and lots of unit tests makes for the best coverage with the most reasonable effort. Of course, many people follow TDD to the letter and probably get better results than I do. Either way, good luck, and good karma to you for writing tests during LD :)

Leave a Reply

You must be logged in to post a comment.

[cache: storing page]