Files
simpeg/code/tests/runTests.py
T
Rowan Cockett 68b4719aea Ability to run all tests at once.
Removed __init__.py

added runTests.py and .sh so that we can run all tests at one time.
2013-07-09 22:00:17 -07:00

12 lines
390 B
Python

import glob
import unittest
# This code will run all tests in directory named test_*.py
test_file_strings = glob.glob('test_*.py')
module_strings = [str[0:len(str)-3] for str in test_file_strings]
suites = [unittest.defaultTestLoader.loadTestsFromName(str) for str
in module_strings]
testSuite = unittest.TestSuite(suites)
text_runner = unittest.TextTestRunner().run(testSuite)