Skip to content

Commit c5613bb

Browse files
committed
package names with hyphen in them
1 parent b0365b2 commit c5613bb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/coverage.sh

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

33
source .venv/bin/activate
44

5+
package_name=$(echo $1 | tr '-' '_')
6+
57
# 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
8+
pytest --cov="src/$package_name" --cov-report=html --cov-report=term-missing . 2>&1 | tee htmlcov/coverage_report.txt
79

810
# Extract just the missing coverage summary
911
grep -A 20 "Missing" htmlcov/coverage_report.txt > htmlcov/missing_coverage.txt

0 commit comments

Comments
 (0)