From 81a4bbcc64f712b995d9eed0319e29ee2e2df818 Mon Sep 17 00:00:00 2001 From: Brad Stein Date: Tue, 19 May 2026 08:37:26 -0300 Subject: [PATCH] ci(lesavka): keep support folders out of category metrics --- scripts/ci/test_gate.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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'