source: SHX/trunk/src/SeismicHandler/tests/runtests.py @ 244

Revision 244, 313 bytes checked in by marcus, 13 years ago (diff)
  • property changes (svn:executable deleted)
  • first structure for task #27
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Rev Id Date
Line 
1# -*- coding: utf-8 -*-
2
3""" run all test found """
4
5from glob import glob
6import os
7import unittest
8
9suite = unittest.TestSuite()
10
11for test in glob("test_*.py"):
12    mod = os.path.splitext(test)[0]
13    imp = __import__(mod, globals(), locals())
14
15    suite.addTest(imp.suite())
16
17unittest.main(defaultTest="suite")
Note: See TracBrowser for help on using the repository browser.