Where did you learn to unit test? How did you learn?

John Roth johnroth at ameritech.net
Thu May 1 07:14:49 EDT 2003


"Christopher Blunck" <blunck at gst.com> wrote in message
news:1147e466.0304290638.287687f6 at posting.google.com...
> Hi all-
>
> This is my second generic question posted to c.l.p (the first was 'How
> many of you are Extreme Programmers?') but it seems like a somewhat
> appropriate discussion for the group.
>
> I've noticed in my development that Python programmers (in general)
> write more unit tests than their java counterparts.  If I download a
> project off of jakarta.apache.org, it very rarely has unit tests.
> However, when I download a python module, it frequently has unit
> tests.
>
> I'm in a position where I'm trying to spread the testing bug to my
> team.  It's remarkable to watch folks who were once viciously opposed
> to unit testing adopt it  as being absolutely critical during
> application development.  While this is encouraging, it is far from
> the common case, and I'd like to improve that.

One very subtle point: unittest comes with Python. JUnit is
an add-on.

John Roth

>
> What advice can you offer on spreading the testing bug around?

Do it yourself until it's not only natural, but so you have
a bank of experiance with typical problems. It's a lot
better to be able to say that you've seen a problem,
and what you did about it.

John Roth








More information about the Python-list mailing list