declaration of variables?

jcm joshway_without_spam at myway.com
Wed Feb 19 10:03:57 EST 2003


Dennis Lee Bieber <wlfraed at ix.netcom.com> wrote:
> Joshua Marshall fed this fish to the penguins on Tuesday 18 February 
> 2003 06:10 am:


>> Unit tests are generally written by humans, and may fail to fully test
>> a program's behavior.  Personally, I find variable declarations

>         We have what appears to be a dichotomy at this juncture.

>         Unit tests are NOT meant to test the /program's/ behavior. They /are/ 
> meant to test the /components/ of the program. Ideally your program is 
> modularized enough that you can create a test for each small piece. 
> After validating that small piece you move up a level (from base 
> function to class, from class to module) and build a test that only 
> validates that level -- the test doesn't need to validate lower level 
> items as they have already been cleared.

"Program" might have been the wrong word.  Replacing it with
"component" is fine; I still hold the same opinion.




More information about the Python-list mailing list