aboutsummaryrefslogtreecommitdiff
path: root/test/runner.py
diff options
context:
space:
mode:
authorlltommy2020-11-11 09:56:12 +0100
committerlltommy2020-11-11 09:56:12 +0100
commitd6aa323b6fc7a82e45cc1df51fc72c2d547146eb (patch)
tree6e8b77bde4dc34fab3fa8804906f3cb821f61dae /test/runner.py
parentc5fe5de7e4c77bfb48b1ae2f662c2d9cc120c06e (diff)
parentc872248e43c1c66e5fed8ef341f7b4ac21d63e6f (diff)
downloadbh20-seq-resource-d6aa323b6fc7a82e45cc1df51fc72c2d547146eb.tar.gz
bh20-seq-resource-d6aa323b6fc7a82e45cc1df51fc72c2d547146eb.tar.lz
bh20-seq-resource-d6aa323b6fc7a82e45cc1df51fc72c2d547146eb.zip
Merge branch 'master' of https://github.com/arvados/bh20-seq-resource
Diffstat (limited to 'test/runner.py')
-rw-r--r--test/runner.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/runner.py b/test/runner.py
new file mode 100644
index 0000000..3cfe042
--- /dev/null
+++ b/test/runner.py
@@ -0,0 +1,17 @@
+# Run tests. python3 test/runner.py
+
+import unittest
+
+# initialize the test suite
+loader = unittest.TestLoader()
+suite = unittest.TestSuite()
+
+import test_shex
+import test_sparql
+
+suite.addTests(loader.loadTestsFromModule(test_shex))
+suite.addTests(loader.loadTestsFromModule(test_sparql))
+
+# initialize a runner, pass it your suite and run it
+runner = unittest.TextTestRunner(verbosity=3)
+result = runner.run(suite)