aboutsummaryrefslogtreecommitdiff
path: root/webtests/test_runner.py
diff options
context:
space:
mode:
authorZachary Sloan2013-08-21 17:47:24 -0500
committerZachary Sloan2013-08-21 17:47:24 -0500
commitf5398e8d1dde6a321d302a86fd8d8bb36789b92b (patch)
treea24013290ee45976ae3f36db6b3a80ad2e8ed082 /webtests/test_runner.py
parentff209d583e0600bf8ac3efb64e59507adf77a21f (diff)
parentb9ccccf8d1cf47c33afbbb0c05d56d7a0f5039e3 (diff)
downloadgenenetwork2-f5398e8d1dde6a321d302a86fd8d8bb36789b92b.tar.gz
Merge branch 'master' of https://github.com/zsloan/genenetwork
Diffstat (limited to 'webtests/test_runner.py')
-rw-r--r--webtests/test_runner.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/webtests/test_runner.py b/webtests/test_runner.py
new file mode 100644
index 00000000..d2d6339d
--- /dev/null
+++ b/webtests/test_runner.py
@@ -0,0 +1,27 @@
+from __future__ import absolute_import, division, print_function
+
+import unittest
+import doctest
+import glob
+
+#tests = ("correlation_test",
+# "correlation_matrix_test",
+# "marker_regression_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