示例#1
0
def run_tests(loader, args, path, nocolor):
    sys.path[:] = path
    loader_ep = EntryPoint.parse("x=" + loader)
    loader_class = loader_ep.load(require=False)
    m = ZenTestProgram(None,
                       None, [unittest.__file__] + args,
                       testLoader=loader_class(),
                       testRunner=get_test_runner(nocolor))
    return m.result
示例#2
0
def run_tests(loader, args, path, nocolor):
    sys.path[:] = path
    loader_ep = EntryPoint.parse("x="+loader)
    loader_class = loader_ep.load(require=False)
    m = ZenTestProgram(None, None, [unittest.__file__]+args, testLoader=loader_class(), testRunner=get_test_runner(nocolor))
    return m.result
示例#3
0
 def run_suite(self, suite, **kwargs):
     return get_test_runner(nocolor)(
         verbosity=self.verbosity).run(suite)
示例#4
0
 def run_suite(self, suite, **kwargs):
     return get_test_runner(nocolor)(verbosity=self.verbosity).run(suite)
示例#5
0
def run_tests(app, pattern, start_dir, verbosity, nocolor):
    print start_dir
    loader = ZenTestLoader()
    suite = loader.discover(start_dir, pattern, start_dir)
    result = get_test_runner(nocolor)(verbosity=verbosity).run(suite)
    return result