import unittest
loader = unittest.TestLoader()
start_dir = '.'
suite = loader.discover(start_dir)

runner = unittest.TextTestRunner()
runner.run(suite)
add testrunner.py to run all tests (as hook for static analysis)