diff options
Diffstat (limited to 'deprecated/automation/all_tests.py')
-rw-r--r-- | deprecated/automation/all_tests.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/deprecated/automation/all_tests.py b/deprecated/automation/all_tests.py new file mode 100644 index 00000000..e7b70884 --- /dev/null +++ b/deprecated/automation/all_tests.py @@ -0,0 +1,16 @@ +import glob +import sys +import unittest + +sys.path.insert(0, 'server') +sys.path.insert(0, 'clients') +sys.path.insert(0, 'common') + +test_file_strings = glob.glob('*/*_test.py') +module_strings = [str[0:len(str) - 3] for str in test_file_strings] +for i in range(len(module_strings)): + module_strings[i] = module_strings[i].split('/')[-1] +suites = [unittest.defaultTestLoader.loadTestsFromName(str) + for str in module_strings] +testSuite = unittest.TestSuite(suites) +text_runner = unittest.TextTestRunner().run(testSuite) |