d14a1e2856
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@24541 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
26 lines
637 B
Python
26 lines
637 B
Python
#!/usr/bin/env python
|
|
|
|
__author__ = "Patrick K. O'Brien <pobrien@orbtech.com>"
|
|
__cvsid__ = "$Id$"
|
|
__revision__ = "$Revision$"[11:-2]
|
|
|
|
|
|
import unittest
|
|
import glob
|
|
import os
|
|
|
|
|
|
def suite():
|
|
"""Return a test suite containing all test cases in all test modules.
|
|
Searches the current directory for any modules matching test_*.py."""
|
|
suite = unittest.TestSuite()
|
|
for filename in glob.glob('test_*.py'):
|
|
module = __import__(os.path.splitext(filename)[0])
|
|
suite.addTest(unittest.defaultTestLoader.loadTestsFromModule(module))
|
|
return suite
|
|
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main(defaultTest='suite')
|
|
|