Archive of articles classified as' "All Posts"  Back home  A
short letter to a unit testing newcomer   One of my friends
asked how to get started with unit testing and Test Driven
Development and figured I could write a short post. I also
mention TDD a few times in my book so I think it could use some
more attention.  I got started with unit testing when I wrote a
smallish Python project, and realized I couldn’t maintain large
Python projects without tests*. So I wrote unit tests for my
code. I then quickly got into TDD. I don’t remember what
resources I used, but there are plenty.  I’d encourage you to
start unit testing by writing your code first, then the tests.
As soon as this becomes easy and is paying off, start writing
the tests first (TDD). You will come to appreciate that this is
a powerful way of thinking and working. Even if you don’t
ultimately stick with this approach, it is worth becoming
skilled with it. You will uncover many suboptimal areas in your
coding process that are otherwise extremely