diff --git a/scripts/ci/test_gate.sh b/scripts/ci/test_gate.sh index 6bb651c..3669abe 100755 --- a/scripts/ci/test_gate.sh +++ b/scripts/ci/test_gate.sh @@ -83,10 +83,13 @@ test_category_names = { 'integration', 'manual', 'performance', 'regression', 'reliability', 'security', 'smoke', 'system', 'ui', 'unit', } +support_category_names = {'fixtures', 'golden', 'helpers'} def normalize_category(category: str) -> str: if category in test_category_names: return category + if category in support_category_names: + return 'uncategorized' return 'uncategorized' manifest_path = pathlib.Path('tests/test-taxonomy-manifest.json') @@ -162,7 +165,7 @@ def category_for_target(target: str) -> str: return category_by_test_name[binary_name] parts = pathlib.PurePosixPath(target).parts if len(parts) >= 2 and parts[0] == 'tests': - return parts[1] + return normalize_category(parts[1]) if target.startswith('src/'): return 'unit' return 'uncategorized'