[Tutor] unit testing

alan.gauld@bt.com alan.gauld@bt.com
Mon, 17 Sep 2001 09:37:07 +0100


> >the interpreter and load my code as a module and run the functions 
> >dynamically.

I don't like using the interpreter for formal testing - fine for debugging.
You can't repeat the tests consistently or accurately.

> Sometimes beginners (including "beginners" experienced in
> languages without much of a shell) waste a lot of time
> prompting themselves for input using raw_input loops,
> the purpose of which is simply to pass values back to
> functions in the context of running a script as a program.

I actually prefer this approach for formal testing because 
its easy to do regression testing using text files for input/output

Alan G