configurationengine/source/testautomation/testautomation/tests/__init__.py
changeset 3 e7e0ae78773e
parent 0 2e8eeb919028
--- a/configurationengine/source/testautomation/testautomation/tests/__init__.py	Fri Mar 12 08:30:17 2010 +0200
+++ b/configurationengine/source/testautomation/testautomation/tests/__init__.py	Tue Aug 10 14:29:28 2010 +0300
@@ -14,27 +14,3 @@
 # Description: 
 #
 
-import unittest, os, sys
-
-ROOT_PATH = os.path.dirname(os.path.abspath(__file__))
-sys.path.append(os.path.join(ROOT_PATH,'../..'))
-
-# Find all unittest_*.py files in this folder
-import re
-__all__ = filter(lambda name: re.match(r'^unittest_.*\.py$', name) != None, os.listdir(ROOT_PATH))
-# Strip .py endings
-__all__ = map(lambda name: name[:-3], __all__)
-
-def collect_suite():  
-    suite = unittest.TestSuite()
-    for test_module in __all__:
-        # Load the test module dynamically and add it to the test suite
-        module = __import__(test_module)
-        suite.addTests(unittest.TestLoader().loadTestsFromModule(module))
-    return suite      
-
-def runtests():
-    unittest.TextTestRunner(verbosity=2).run(collect_suite())
-
-if __name__ == '__main__':
-    runtests()