aboutsummaryrefslogtreecommitdiff
path: root/test/runner.py
diff options
context:
space:
mode:
authorPjotr Prins2020-11-07 10:21:48 +0000
committerPjotr Prins2020-11-07 10:21:48 +0000
commit8a02280c4bd05a7f8df598a75a1ea2d3caaddd7d (patch)
treef145ff22304589c4c7161da3cad01d90aeeba749 /test/runner.py
parent9709eca5c76aabe823ba34d976c5d11a9d150b76 (diff)
downloadbh20-seq-resource-8a02280c4bd05a7f8df598a75a1ea2d3caaddd7d.tar.gz
bh20-seq-resource-8a02280c4bd05a7f8df598a75a1ea2d3caaddd7d.tar.lz
bh20-seq-resource-8a02280c4bd05a7f8df598a75a1ea2d3caaddd7d.zip
Tests: add runner and frame for SPARQL
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)