Exemple #1
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)
    parser.finalize(0)
Exemple #2
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)
Exemple #3
0
 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)
Exemple #4
0
 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)
Exemple #5
0
 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)
Exemple #6
0
 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)