From 94dd10b13a284015f2c9fabf8a506b698032a7f5 Mon Sep 17 00:00:00 2001 From: Gabriel Radureau Date: Fri, 10 Apr 2026 15:15:06 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20test:=20fix=20filtering=20to=20r?= =?UTF-8?q?emove=20all=20non-specific=20test=20suite=20lines?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/validate-test-suite.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/scripts/validate-test-suite.sh b/scripts/validate-test-suite.sh index ba062b3..d700ad3 100755 --- a/scripts/validate-test-suite.sh +++ b/scripts/validate-test-suite.sh @@ -145,7 +145,11 @@ else echo "================" # 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 echo "Summary:" while IFS= read -r line; do @@ -161,9 +165,10 @@ else echo "Detailed BDD Failure Log (first 20 lines):" echo "==========================================" # 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 -v "dance-lessons-coach/features" | \ + grep -v "^[0-9].*FAIL" | \ grep "/" | \ head -20 fi