-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest_all.py
43 lines (32 loc) · 1.04 KB
/
test_all.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/usr/bin/env python2
"""
#python2 -m unittest -v test_all
#python2 -m unittest -v test_all.AllTestCases.TestFunctions.test_t1
"""
import unittest
import numpy
#from tgo_tests import TestTgo
from tgo_tests import tgo_suite
from data_handling_tests import data_handling_suite
from pure_tests import pure_suite
from ncomp_tests import ncomp_suite
#class AllTestCases(unittest.TestCase):
# def test_something(self):
# self.assertEqual(True, False)
#TestFunctions
#def test_all_wrap(TestTgo, DataTests):
def test_all_wrap(test_suite): #TODO: look at nose as a test runner.
"""
Gather all the data_handling tests from this module in a test suite.
"""
TestAll = unittest.TestSuite()
for ts in test_suite:
TestAll.addTest(ts)
return TestAll
if __name__ == '__main__':
TestTgo = tgo_suite()
DataTests = data_handling_suite()
TestPure = pure_suite()
TestNcomp = ncomp_suite()
TestAll = test_all_wrap((TestTgo, DataTests, TestPure, TestNcomp))
unittest.TextTestRunner(verbosity=2).run(TestAll)