🧪 test: fix filtering to remove all non-specific test suite lines
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user