On Wed, Mar 30, 2005 at 09:46:48AM +1000, Chris Wright wrote:
> For list-related administrative tasks:
>http://list.cs.brown.edu/mailman/listinfo/plt-scheme>> what is the most sensible way to include tests in a module?
>> python uses an idiom where
>> if __name__ == '__main__':
> do_the_tests()
>>> is placed at the end of a module, and then the module can be called with
>> > python <module-name>
>> and do_the_tests() will be executed.
>> What's the most sensible way to do this in drscheme? I would expect the
> test code to be executed when I "ran" the module in the IDE.
The SchemeUnit docs (available from PLaneT) give some pointers on how to
set up your modules such that hitting "Execute" will run all of your
test cases; see the sections on "Glassbox testing", "Tips for Using
SchemeUnit", and "Extended Example."
Richard