configurationengine/source/plugins/runtests.py
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
--- a/configurationengine/source/plugins/runtests.py	Fri Mar 12 08:30:17 2010 +0200
+++ b/configurationengine/source/plugins/runtests.py	Tue Aug 10 14:29:28 2010 +0300
@@ -14,22 +14,11 @@
 # Description:
 #
 
-import sys, os, re, unittest
-import plugin_utils
-
-ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
-
-if __name__ == "__main__":
-    # Collect a list of plug-in source paths and plug-in module names
-    sources = plugin_utils.find_all_plugin_sources(ROOT_PATH)
-    
-    # Flatten the source list
-    flattened_sources = []
-    for subpackage_name, paths_and_modnames in sources.iteritems():
-        flattened_sources.extend(paths_and_modnames)
-    
-    # Create a test suite from them
-    suite = plugin_utils.collect_suite_from_source_list(flattened_sources)
-    
-    # Run the suite
-    unittest.TextTestRunner(verbosity=2).run(suite)
+if __name__ == '__main__':
+    import nose
+    nose.core.run(argv=['collector',
+                        'common',
+                        'example',
+                        'symbian',
+                        '--include=unittest', 
+                        '--verbosity=3'])
\ No newline at end of file