aboutsummaryrefslogtreecommitdiffstats
path: root/runtests.py
diff options
context:
space:
mode:
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)