Skip to content

Commit 5dfa485

Browse files
committed
coverage script error on first run
1 parent 809acb2 commit 5dfa485

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

scripts/coverage.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@ source .venv/bin/activate
55
package_name=$(echo "$1" | tr '-' '_')
66

77
# Run pytest with coverage reports and tee output
8+
mkdir -p htmlcov
89
pytest --cov="src/$package_name" --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
910

1011
# Extract just the missing coverage summary
11-
grep -A 20 "Missing" htmlcov/coverage_report.txt > htmlcov/missing_coverage.txt
12+
grep -A 20 "Missing" htmlcov/coverage_report.txt > htmlcov/missing_coverage.txt || true

0 commit comments

Comments
 (0)