equal
deleted
inserted
replaced
12 # Contributors: |
12 # Contributors: |
13 # |
13 # |
14 # Description: |
14 # Description: |
15 # |
15 # |
16 |
16 |
17 import unittest, os, sys |
|
18 |
17 |
19 ROOT_PATH = os.path.dirname(os.path.abspath(__file__)) |
|
20 PLUGIN_SOURCE_ROOT = os.path.normpath(os.path.join(ROOT_PATH, '../..')) |
|
21 assert os.path.split(PLUGIN_SOURCE_ROOT)[1] == 'plugins' |
|
22 |
|
23 # Import plugin_utils from the plug-in sources root |
|
24 if PLUGIN_SOURCE_ROOT not in sys.path: sys.path.append(PLUGIN_SOURCE_ROOT) |
|
25 import plugin_utils |
|
26 |
|
27 # Run integration test initialization |
|
28 plugin_utils.integration_test_init(ROOT_PATH) |
|
29 |
|
30 def collect_suite(): |
|
31 return plugin_utils.collect_test_suite_from_dir(ROOT_PATH) |
|
32 |
|
33 def runtests(): |
|
34 unittest.TextTestRunner(verbosity=2).run(collect_suite()) |
|
35 |
|
36 if __name__ == '__main__': |
|
37 runtests() |
|