--- a/configurationengine/source/plugins/common/runtests.py Fri Mar 12 08:30:17 2010 +0200
+++ b/configurationengine/source/plugins/common/runtests.py Tue Aug 10 14:29:28 2010 +0300
@@ -14,19 +14,6 @@
# Description:
#
-import sys, os, re, unittest
-
-ROOT_PATH = os.path.abspath(os.path.dirname(__file__))
-
-PLUGINS_ROOT = os.path.normpath(os.path.join(ROOT_PATH, '..'))
-assert os.path.split(PLUGINS_ROOT)[1] == 'plugins'
-if PLUGINS_ROOT not in sys.path: sys.path.append(PLUGINS_ROOT)
-import plugin_utils
-
-if __name__ == "__main__":
- # Collect a list of plug-in source paths and plug-in module names
- paths_and_modnames = plugin_utils.find_plugin_sources(ROOT_PATH)
- # Create a test suite from them
- suite = plugin_utils.collect_suite_from_source_list(paths_and_modnames)
- # Run the suite
- unittest.TextTestRunner(verbosity=2).run(suite)
+if __name__ == '__main__':
+ import nose
+ nose.core.run(argv=['collector','--include=unittest', '--verbosity=3'])