equal
deleted
inserted
replaced
12 # Contributors: |
12 # Contributors: |
13 # |
13 # |
14 # Description: |
14 # Description: |
15 # |
15 # |
16 |
16 |
17 import sys, os, re, unittest |
17 if __name__ == '__main__': |
18 import plugin_utils |
18 import nose |
19 |
19 nose.core.run(argv=['collector', |
20 ROOT_PATH = os.path.abspath(os.path.dirname(__file__)) |
20 'common', |
21 |
21 'example', |
22 if __name__ == "__main__": |
22 'symbian', |
23 # Collect a list of plug-in source paths and plug-in module names |
23 '--include=unittest', |
24 sources = plugin_utils.find_all_plugin_sources(ROOT_PATH) |
24 '--verbosity=3']) |
25 |
|
26 # Flatten the source list |
|
27 flattened_sources = [] |
|
28 for subpackage_name, paths_and_modnames in sources.iteritems(): |
|
29 flattened_sources.extend(paths_and_modnames) |
|
30 |
|
31 # Create a test suite from them |
|
32 suite = plugin_utils.collect_suite_from_source_list(flattened_sources) |
|
33 |
|
34 # Run the suite |
|
35 unittest.TextTestRunner(verbosity=2).run(suite) |
|