mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-20 19:32:22 +02:00
git-subtree-dir: foundations/communication git-subtree-mainline:43fb903924git-subtree-split:f65deaa24b
27 lines
551 B
Bash
Executable File
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 ===" |