We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 809acb2 commit 5dfa485Copy full SHA for 5dfa485
scripts/coverage.sh
@@ -5,7 +5,8 @@ source .venv/bin/activate
5
package_name=$(echo "$1" | tr '-' '_')
6
7
# Run pytest with coverage reports and tee output
8
+mkdir -p htmlcov
9
pytest --cov="src/$package_name" --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
10
11
# Extract just the missing coverage summary
-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