Re: A script to run all of my project's pyunit tests

2005-08-19 Thread travislspencer
[EMAIL PROTECTED] wrote: > for file in glob(projHome + "/tests/*.py"): > start = file.rfind("/") + 1 > end = file.rfind(".") > moduleName = file[start:end] > module = __import__(moduleName) klass = module.__dict__[module.__name__] tests.append(unittest.makeSuite(klass,

A script to run all of my project's pyunit tests

2005-08-19 Thread travislspencer
Hey All, I am trying to write a script that runs all of my pyunit tests for me. Ideally, I would like to be able to drop a new module into my project's test subdirectory, and the testing script will pick it up automatically. At the moment, I have it working but it is kinda a kludge because every