view tests/run.py @ 91:7d10165cf3d9

tests: Mock the mercurial.ui.ui class like we really should to capture output. Has the nice side effect that we can use nose 0.11's multiprocess plugin.
author Augie Fackler <durin42@gmail.com>
date Fri, 14 Nov 2008 16:52:30 -0600
parents 3b60f223893a
children 9b5e528f67f8
line wrap: on
line source

import os
import sys
import unittest

sys.path.append(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))

import test_fetch_command
import test_fetch_command_regexes
import test_fetch_renames
import test_fetch_truncated
import test_push_command
import test_push_renames
import test_push_dirs
import test_tags

def suite():
    return unittest.TestSuite([test_fetch_command.suite(),
                               test_fetch_command_regexes.suite(),
                               test_fetch_renames.suite(),
                               test_fetch_truncated.suite(),
                               test_push_command.suite(),
                               test_push_renames.suite(),
                               test_push_dirs.suite(),
                               test_tags.suite(),
                              ])

if __name__ == '__main__':
    runner = unittest.TextTestRunner()
    runner.run(suite())