Join #ludumdare on irc.afternet.org
Mini LD #5 :: November 7th-9th Weekend :: Theme :: Cover

Sign In | Write your Journal
Home | Planet Ludum | Rules Wiki | Mailing List
Ludum Dare 12 Final Results NOW AVAILABLE

Click HERE for the Ludum Dare 12 entries image grid
(to be included in the image grid, you must upload an image to the blog)


TDD On Hold

Posted by GBGames

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


All posts, images, and comments are owned by their creators.