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
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
def run_suite(self, suite, **kwargs): return get_test_runner(nocolor)( verbosity=self.verbosity).run(suite)
def run_suite(self, suite, **kwargs): return get_test_runner(nocolor)(verbosity=self.verbosity).run(suite)
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