Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)
Esempio n. 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)