summaryrefslogtreecommitdiffhomepage
path: root/tests/run_tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run_tests.py')
-rwxr-xr-xtests/run_tests.py35
1 files changed, 35 insertions, 0 deletions
diff --git a/tests/run_tests.py b/tests/run_tests.py
new file mode 100755
index 00000000..133c7e7e
--- /dev/null
+++ b/tests/run_tests.py
@@ -0,0 +1,35 @@
+#!/usr/bin/env python
+
+
+import os
+import sys
+
+from nose import config
+from nose import core
+
+sys.path.append(os.getcwd())
+sys.path.append(os.path.dirname(__file__))
+
+
+import tests.unit
+from tests.test_lib import run_tests
+
+
+if __name__ == '__main__':
+ exit_status = False
+
+ # if a single test case was specified,
+ # we should only invoked the tests once
+ invoke_once = len(sys.argv) > 1
+
+ cwd = os.getcwd()
+ c = config.Config(stream=sys.stdout,
+ env=os.environ,
+ verbosity=int(os.environ.get('NOSE_VERBOSE', 3)),
+ includeExe=True,
+ traverseNamespace=True,
+ plugins=core.DefaultPluginManager())
+ c.configureWhere(tests.unit.__path__)
+
+ exit_status = run_tests(c)
+ sys.exit(exit_status)