CI: test-apps introduction

Introducing feature of adding arbitrary projects which could be build or
executed in the CI for the only purpose as testing

Closes IDF-641
This commit is contained in:
Ivan Grokhotkov
2019-10-20 20:55:11 +02:00
committed by bot
parent 9d333424a1
commit e63764b468
17 changed files with 312 additions and 7 deletions

View File

@@ -93,14 +93,14 @@ class Search(object):
return replicated_cases
@classmethod
def search_test_cases(cls, test_case):
def search_test_cases(cls, test_case, test_case_file_pattern=None):
"""
search all test cases from a folder or file, and then do case replicate.
:param test_case: test case file(s) path
:return: a list of replicated test methods
"""
test_case_files = cls._search_test_case_files(test_case, cls.TEST_CASE_FILE_PATTERN)
test_case_files = cls._search_test_case_files(test_case, test_case_file_pattern or cls.TEST_CASE_FILE_PATTERN)
test_cases = []
for test_case_file in test_case_files:
test_cases += cls._search_cases_from_file(test_case_file)