Unit test examples
Peter Hansen
peter at engcorp.com
Sun Dec 22 14:24:01 EST 2002
Greg Brunet wrote:
>
> Thanks everyone for the recommendations. I've downloaded Dive Into
> Python & have started looking at that & I'm trying to get a copy of the
> draft TDDBE.
http://groups.yahoo.com/group/testdrivendevelopment/files/
The latest draft is, I believe, TDD17Jul2002.pdf . Note the other files,
including some that refer to Python.
I haven't read it yet, but danil.chess.report.txt looks very interesting.
It is titled "Developing a Python implementation of int2FischerPosition"
and appears to contain a record of the sequence of the test-driven
development of a chess algorithm, including the *red* and green steps
along the way, beginning with the trivial test.
Okay, this isn't so much about unit-testing as it is about test-driven
development (TDD) but I suspect one could learn a fair bit from it.
-Peter
More information about the Python-list
mailing list