def run_tests(*test_cases, **kwargs): ''' Run unit tests for the chosen test cases. :param test_cases: The list of test cases to execute :type test_cases: ``list`` of :class:`TestCase` ''' parser = SaltTestcaseParser() parser.parse_args() for case in test_cases: if parser.run_testcase(case) is False: parser.finalize(1) parser.finalize(0)
def run_tests(*test_cases, **kwargs): ''' Run unit tests for the chosen test cases. :param test_cases: The list of test cases to execute :type test_cases: ``list`` of :class:`TestCase` ''' parser = SaltTestcaseParser() parser.parse_args() for case in test_cases: if parser.run_testcase(case) is False: parser.finalize(1)
def run_testcase(self, testcase, needs_daemon=True): # pylint: disable=W0221 if needs_daemon: print(' * Setting up Salt daemons to execute tests') with TestDaemon(self): return SaltTestcaseParser.run_testcase(self, testcase) return SaltTestcaseParser.run_testcase(self, testcase)
def run_testcase(self, testcase, needs_daemon=True): if needs_daemon: print('Setting up Salt daemons to execute tests') with TestDaemon(self): return SaltTestcaseParser.run_testcase(self, testcase) return SaltTestcaseParser.run_testcase(self, testcase)