diff options
author | Lei Yan | 2013-09-13 14:07:27 -0500 |
---|---|---|
committer | Lei Yan | 2013-09-13 14:07:27 -0500 |
commit | af24c0d610d9a2189f86677e4f23deb372ee2bf7 (patch) | |
tree | 53480351b97727670637a37dbd4c78e52446ae88 /webtests/test_runner.py | |
parent | 155e2997613c0750de30b734686f8977524956f9 (diff) | |
parent | c5fc931621707865357ace4b637db7481e0be552 (diff) | |
download | genenetwork2-af24c0d610d9a2189f86677e4f23deb372ee2bf7.tar.gz |
Merge https://github.com/zsloan/genenetwork
Resolved conflicts:
wqflask/base/trait.py
wqflask/wqflask/correlation/correlationFunction.py
wqflask/wqflask/correlation/correlation_function.py
wqflask/wqflask/correlation/correlation_functions.py
wqflask/wqflask/correlation/show_corr_results.py
Diffstat (limited to 'webtests/test_runner.py')
-rw-r--r-- | webtests/test_runner.py | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/webtests/test_runner.py b/webtests/test_runner.py new file mode 100644 index 00000000..ef6d0d69 --- /dev/null +++ b/webtests/test_runner.py @@ -0,0 +1,28 @@ +from __future__ import absolute_import, division, print_function + +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()
\ No newline at end of file |