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