diff --git a/ci-runner.sh b/ci-runner.sh index d559c4e..6f7011e 100755 --- a/ci-runner.sh +++ b/ci-runner.sh @@ -138,9 +138,13 @@ fi # ─── Results ─── END_TIME=$(date +%s) DURATION=$((END_TIME - START_TIME)) -SUITE_TAG="light" SUMMARY="${PASS_COUNT} passed, ${FAIL_COUNT} failed, ${SKIP_COUNT} skipped" -SUITE_INFO="Suite: ${SUITE_TAG} | ${DESELECTED_COUNT} tests not in suite" + +# Collect which feature tags were present in tested files +TAGS_USED=$(grep -rhoP 'pytest\.mark\.\K\w+' "$WORKTREE/backend/tests/test_"*.py 2>/dev/null | \ + sort -u | grep -vxE 'skipif|skip|parametrize|fixture|unit|integration|pipeline|e2e|slow|heavy' | \ + tr '\n' ', ' | sed 's/,$//') +SUITE_INFO="Tags: ${TAGS_USED} | ${DESELECTED_COUNT} not in scope" echo "" echo "========================="