Skip to content

Commit b0365b2

Browse files
committed
coverage for bots
1 parent 74570cb commit b0365b2

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

scripts/coverage.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,8 @@
22

33
source .venv/bin/activate
44

5-
pytest --cov="src/$1" --cov-report=html .
5+
# Run pytest with coverage reports and tee output
6+
pytest --cov="src/$1" --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
7+
8+
# Extract just the missing coverage summary
9+
grep -A 20 "Missing" htmlcov/coverage_report.txt > htmlcov/missing_coverage.txt

0 commit comments

Comments
 (0)