diff options
Diffstat (limited to 'test/runner.py')
-rw-r--r-- | test/runner.py | 17 |
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) |