| 1 | |
| 2 | import os
|
| 3 | import unittest
|
| 4 | import sys
|
| 5 |
|
| 6 | TOOLS_DIR=os.path.join(os.path.dirname(os.path.realpath(__file__)), "..")
|
| 7 | sys.path.insert(0, TOOLS_DIR)
|
| 8 |
|
| 9 | from lib.python.unittest_helper import TestUnits
|
| 10 |
|
| 11 | if __name__ == "__main__":
|
| 12 | loader = unittest.TestLoader()
|
| 13 |
|
| 14 | suite = loader.discover(start_dir=os.path.join(TOOLS_DIR, "unittests"),
|
| 15 | pattern="test*.py")
|
| 16 |
|
| 17 | TestUnits().run("", suite=suite)
|