2
# Runs all tests in the current directory
5
# python runalltests.py
7
# Alternatively use the testrunner:
8
# python /path/to/Zope/utilities/testrunner.py -qa
12
if __name__ == '__main__':
13
execfile(os.path.join(sys.path[0], 'framework.py'))
16
TestRunner = unittest.TextTestRunner
17
suite = unittest.TestSuite()
19
tests = os.listdir(os.curdir)
20
tests = [n[:-3] for n in tests if n.startswith('test') and n.endswith('.py')]
24
if hasattr(m, 'test_suite'):
25
suite.addTest(m.test_suite())
27
if __name__ == '__main__':
28
TestRunner().run(suite)