source: products/qPloneGoogleMaps/branches/qPloneGoogleMaps_with_geo_interfaces/tests/runalltests.py @ 1591

Last change on this file since 1591 was 1, checked in by myroslav, 18 years ago

Building directory structure

  • Property svn:eol-style set to native
File size: 672 bytes
Line 
1#
2# Runs all tests in the current directory
3#
4# Execute like:
5#   python runalltests.py
6#
7# Alternatively use the testrunner:
8#   python /path/to/Zope/utilities/testrunner.py -qa
9#
10import psyco
11psyco.full()
12import os, sys
13if __name__ == '__main__':
14    execfile(os.path.join(sys.path[0], 'framework.py')) 
15
16import unittest
17TestRunner = unittest.TextTestRunner
18suite = unittest.TestSuite()
19
20tests = os.listdir(os.curdir)
21tests = [n[:-3] for n in tests if n.startswith('test') and n.endswith('.py')]
22
23for test in tests:
24    m = __import__(test)
25    if hasattr(m, 'test_suite'):
26        suite.addTest(m.test_suite())
27
28if __name__ == '__main__':
29    TestRunner().run(suite)
30
Note: See TracBrowser for help on using the repository browser.