mirror of
https://github.com/wassname/simpeg.git
synced 2026-06-28 19:01:34 +08:00
68b4719aea
Removed __init__.py added runTests.py and .sh so that we can run all tests at one time.
12 lines
390 B
Python
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)
|