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