aboutsummaryrefslogtreecommitdiffstats
path: root/runtests.py
diff options
context:
space:
mode:
authorSean Brant2013-03-09 15:57:26 -0600
committerSean Brant2013-03-09 15:57:26 -0600
commitfa90f078e5de5a1acbd9eda529db17ab1b2b4cb3 (patch)
tree7d3014b692f53e5272c52a7f87c66f5aa9908b44 /runtests.py
downloadpykss-fa90f078e5de5a1acbd9eda529db17ab1b2b4cb3.tar.bz2
Initial Import
Diffstat (limited to 'runtests.py')
-rw-r--r--runtests.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/runtests.py b/runtests.py
new file mode 100644
index 0000000..b415412
--- /dev/null
+++ b/runtests.py
@@ -0,0 +1,18 @@
+#!/usr/bin/env python
+import sys
+
+
+def runtests(args=None):
+ import pytest
+
+ if not args:
+ args = []
+
+ if not any(a for a in args[1:] if not a.startswith('-')):
+ args.append('tests')
+
+ sys.exit(pytest.main(args))
+
+
+if __name__ == '__main__':
+ runtests(sys.argv)