Back to index

rabbitmq-server  2.8.4
Functions
test_runner Namespace Reference

Functions

def add_deps_to_path
def run_unittests

Function Documentation

Definition at line 7 of file test_runner.py.

00007 
00008 def add_deps_to_path():
00009     deps_dir = os.path.realpath(os.path.join(__file__, "..", "..", "..", "deps"))
00010     sys.path.append(os.path.join(deps_dir, "stomppy", "stomppy"))

Here is the caller graph for this function:

def test_runner.run_unittests (   modules)

Definition at line 11 of file test_runner.py.

00011 
00012 def run_unittests(modules):
00013     add_deps_to_path()
00014 
00015     suite = unittest.TestSuite()
00016     for m in modules:
00017         mod = __import__(m)
00018         for name in dir(mod):
00019             obj = getattr(mod, name)
00020             if name.startswith("Test") and issubclass(obj, unittest.TestCase):
00021                 suite.addTest(unittest.TestLoader().loadTestsFromTestCase(obj))
00022 
00023     ts = unittest.TextTestRunner().run(unittest.TestSuite(suite))
00024     if ts.errors or ts.failures:
00025         sys.exit(1)
00026 

Here is the call graph for this function: