blob: b5b590a67b19620f693bdd61ae3ccc914ca2274e (
about) (
plain)
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
|
import unittest
import doctest
import glob
tests = ("correlation_test",
"correlation_matrix_test",
"marker_regression_test",
"show_trait_js_test")
def main():
tests = glob.glob("*_test.py")
suite = unittest.TestSuite()
for testname in tests:
test = testname.rsplit(".", 1)[0]
print("Test is:", test)
mod = __import__(test)
suite.addTest(doctest.DocTestSuite(mod))
runner = unittest.TextTestRunner()
runner.run(suite)
if __name__ == '__main__':
main()
|