[TIP] testing: why bother?

Jones, Larry Larry.Jones at aspentech.com
Wed Mar 23 12:09:43 PDT 2011



The single most important reason to write tests has a two-part answer.


First, writing and executing tests is the only reliable mechanism to
verify that what I intended to write is what I actually wrote. In other
words, testing is the mechanism to verify that the "mental model" of how
our software operates agrees with how it actually operates. (Some might
reference the quote, "The map is not the territory.")


Second, writing (unit) tests improves my design by causing me to
specifically answer the question: "How will I use this class or method?"


Hope this information helps (along with all the other great answers).



Larry Jones
||| Senior Level Development Engineer
Aspen Technology, Inc. ||| +1 281-504-3324 ||| fax: 281-584-1062 ||| 
www.aspentech.com <http://www.aspentech.com/>  




From: testing-in-python-bounces at lists.idyll.org
[mailto:testing-in-python-bounces at lists.idyll.org] On Behalf Of Alfredo
Sent: Wednesday, March 23, 2011 8:07 AM
To: TesttingInPython
Subject: [TIP] testing: why bother?


Hi list,


I am about to give a presentation about testing in a couple of days and
the audience is in its majority a 

"we do not write tests" one :(


If you had to name the single most important reason why you need to
write tests (or keep up with them) what

would that reason be?


You can reply with multiple ones, but I am interested in the one you
think is *the* mot important one.


One thing to consider though is to think about the problem from their
perspective: "Why do I need to write tests?"

I want to make a dent in that crippled thinking!


I also posted the question in Convore but not everybody is in there,
plus I know that I get the best quality

testing-related answers here :)


Any feedback is *greatly* appreciated!




This e-mail and any attachments are intended only for use by the
addressee(s) named herein and may contain legally privileged and/or
confidential information. If you are not the intended recipient of
this e-mail, you are hereby notified any dissemination,
distribution or copying of this email, and any attachments thereto,
is strictly prohibited. If you receive this email in error please
immediately notify the sender and permanently delete the original
copy and any copy of any e-mail, and any printout thereof.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110323/85e547a8/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 12290 bytes
Desc: image001.png
URL: <http://lists.idyll.org/pipermail/testing-in-python/attachments/20110323/85e547a8/attachment-0001.png>

More information about the testing-in-python mailing list