From 8a02280c4bd05a7f8df598a75a1ea2d3caaddd7d Mon Sep 17 00:00:00 2001 From: Pjotr Prins Date: Sat, 7 Nov 2020 10:21:48 +0000 Subject: Tests: add runner and frame for SPARQL --- test/runner.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 test/runner.py (limited to 'test/runner.py') 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) -- cgit v1.2.3