Moved the feature_tests folder into the regression folder.

This commit is contained in:
Akshay Joshi
2022-09-06 13:59:33 +05:30
parent 71c962f51c
commit 1d0ac0f7dc
22 changed files with 26 additions and 14 deletions

View File

@@ -58,7 +58,7 @@ class TestsGeneratorRegistry(ABCMeta):
ABCMeta.__init__(self, name, bases, d)
@classmethod
def load_generators(cls, pkg_root, exclude_pkgs, for_modules=[],
def load_generators(cls, pkg_args, pkg_root, exclude_pkgs, for_modules=[],
is_resql_only=False):
cls.registry = dict()
@@ -71,6 +71,12 @@ class TestsGeneratorRegistry(ABCMeta):
# Append reverse engineered test case module
all_modules.append('regression.re_sql.tests.test_resql')
if (pkg_args is None or pkg_args == "all") and \
'feature_tests' not in exclude_pkgs:
# Append feature tests module
all_modules += find_modules(
'regression.feature_tests', False, True)
# If specific modules are to be tested, exclude others
# for modules are handled differently for resql
if not is_resql_only and len(for_modules) > 0: