We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b0365b2 commit c5613bbCopy full SHA for c5613bb
scripts/coverage.sh
@@ -2,8 +2,10 @@
2
3
source .venv/bin/activate
4
5
+package_name=$(echo $1 | tr '-' '_')
6
+
7
# Run pytest with coverage reports and tee output
-pytest --cov="src/$1" --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
8
+pytest --cov="src/$package_name" --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
9
10
# Extract just the missing coverage summary
11
grep -A 20 "Missing" htmlcov/coverage_report.txt > htmlcov/missing_coverage.txt
0 commit comments