Monday, March 7, 2011

Test-Driven Development

I just read about this technique, and while it probably will not be added to pygauntlet, I think I will use it in any of my future game projects. The idea is to write a test, run it to see it fail, write the smallest amount of code to make it pass, then continue with development (refactoring, etc.). The good things that come from this process are primarily a set of tests that you can run on your code to be sure any changes have not broken anything, That means every time something is changed, you can check the test to see if the change was successful or wrong. In a small number of cases, one might find that the test is no longer accurate and needs to be modified to match the new correct assumptions.

A big thanks to Noel for the paper he presented at the 2006 Game Developers Conference and his blog post: Games from Within | Backwards Is Forward: Making Better Games with Test-Driven Development

No comments:

Post a Comment