Files
huly-platform/foundations/communication/common/scripts/show-coverage.sh
T
Denis Bykhov 328a7dc269 Add 'foundations/communication/' from commit 'f65deaa24be43513d3be1bd89c40c7d7c91c8b9b'
git-subtree-dir: foundations/communication
git-subtree-mainline: 43fb903924
git-subtree-split: f65deaa24b
2025-11-26 22:57:25 +05:00

27 lines
551 B
Bash
Executable File

#!/bin/bash
echo "=== FINAL COVERAGE REPORT ==="
echo ""
# Iterate through each package directory
for pkg in packages/*/; do
pkgname=$(basename "$pkg")
echo "📦 Package: $pkgname"
echo "---"
# Change to package directory
cd "$pkg" || continue
# Run tests with coverage and extract summary
npm test -- --coverage --silent 2>&1 | \
grep -A 4 "Coverage summary" | \
grep -E "Statements|Branches|Functions|Lines"
# Return to root directory
cd ../.. || exit
echo ""
done
echo "=== END OF COVERAGE REPORT ==="