summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryobmod <yobmod@gmail.com>2021-02-28 17:55:29 +0000
committeryobmod <yobmod@gmail.com>2021-02-28 17:55:29 +0000
commit9c6178f53233aa98a602854240a7a20b6537aa7b (patch)
tree5034aed88741387e379ff728a5e41e2eaab40e43
parentaf7913cd75582f49bb8f143125494d7601bbcc0f (diff)
downloadgitpython-9c6178f53233aa98a602854240a7a20b6537aa7b.tar.gz
add testrunner.py to run all tests (as hook for static analysis)
-rw-r--r--test/testrunner.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/testrunner.py b/test/testrunner.py
new file mode 100644
index 00000000..c66af653
--- /dev/null
+++ b/test/testrunner.py
@@ -0,0 +1,7 @@
+import unittest
+loader = unittest.TestLoader()
+start_dir = '.'
+suite = loader.discover(start_dir)
+
+runner = unittest.TextTestRunner()
+runner.run(suite) \ No newline at end of file