Commit 08cf8d08 authored by Thomas Vincent's avatar Thomas Vincent

Add run_tests function to run tests from python console

parent 06bfda18
Pipeline #11762 canceled with stages
in 4 minutes and 8 seconds
......@@ -47,3 +47,14 @@ def suite():
test_suite.addTest(test_version_suite())
test_suite.addTest(test_util_suite())
return test_suite
def run_tests():
"""Run test complete test_suite"""
runner = unittest.TextTestRunner()
if not runner.run(suite()).wasSuccessful():
print("Test suite failed")
return 1
else:
print("Test suite succeeded")
return 0
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment