Test Driven Development in Python
The slides from my Code Mash presentation on Test Driven Development in Python are now online at: http://powertwenty.com/kpd/downloads/TestDrivenDevelopmentInPython.pdf
It is an introduction to TDD, some tools that work well when doing TDD in python, and the results of a case study in TDD game development using pygame.






January 22nd, 2007 at 12:06 pm
Very nice presentation! And I’m not just saying that because you mentioned my little test runner a lot.
One minor correction, in case you give it again or have a chance to update the pdf: I’ve moved nose to Google code, so the project home is now: http://code.google.com/p/python-nose/.
January 22nd, 2007 at 8:33 pm
CodeMash Complete…
CodeMash has come and gone and I’m working on recovering some sleep. Day two went really well. I got to sleep in a hair longer, but the construction trucks with the beep, beep, beep reversing had me thinking there were constant alarms going off in the…
January 23rd, 2007 at 4:30 am
Thanks Jason, the URL for Nose is updated.
January 25th, 2007 at 9:14 am
I agree with Bruce Eckel’s comment at the presentation that this would make a good book.
Am starting to use nosests on my next project. As a side effect, TDD seems to force me think through my design ahead of time.
I used to start a project by opening vim and writing code.
Now, I find that I am writing out pseduocode on paper, then writing tests, then writing out code
January 29th, 2007 at 5:54 am
Having a rough idea of where things are heading helps a lot.
TDD seems to evolve the design - if one were to issue credits for the design in the About box they would go to the unit tests instead of programmer!
Thanks for the kind words. It’s something going to look into later this year.