🧪 test: fix filtering to remove all non-specific test suite lines
Some checks failed
CI/CD Pipeline / Build Docker Cache (push) Successful in 15s
CI/CD Pipeline / CI Pipeline (push) Failing after 4m14s

This commit is contained in:
2026-04-10 15:15:06 +02:00
parent dfac8f995e
commit 94dd10b13a

View File

@@ -145,7 +145,11 @@ else
echo "================" echo "================"
# Count BDD test failures with granularity # Count BDD test failures with granularity
BDD_FAILURES=$(grep "FAIL" "$BDD_FAILURE_LOG" | sort | uniq -c | sort -rn) BDD_FAILURES=$(grep "FAIL" "$BDD_FAILURE_LOG" | \
grep -v "dance-lessons-coach/features" | \
grep -v "^[0-9].*FAIL" | \
grep "/" | \
sort | uniq -c | sort -rn)
if [ -n "$BDD_FAILURES" ]; then if [ -n "$BDD_FAILURES" ]; then
echo "Summary:" echo "Summary:"
while IFS= read -r line; do while IFS= read -r line; do
@@ -161,9 +165,10 @@ else
echo "Detailed BDD Failure Log (first 20 lines):" echo "Detailed BDD Failure Log (first 20 lines):"
echo "==========================================" echo "=========================================="
# Show only the relevant failure lines with actual test names # Show only the relevant failure lines with actual test names
# Filter out non-specific failures (no '/' means not a specific test) # Filter out non-specific failures and test suite lines
grep -E "(FAIL.*Test|--- FAIL)" "$BDD_FAILURE_LOG" | \ grep -E "(FAIL.*Test|--- FAIL)" "$BDD_FAILURE_LOG" | \
grep -v "dance-lessons-coach/features" | \ grep -v "dance-lessons-coach/features" | \
grep -v "^[0-9].*FAIL" | \
grep "/" | \ grep "/" | \
head -20 head -20
fi fi