aboutsummaryrefslogtreecommitdiff
path: root/deprecated/automation/all_tests.py
blob: e7b7088473eace7565c5304ecd79385eca0ae5ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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)