diff --git a/scripts/run_coverage.sh b/scripts/run_coverage.sh new file mode 100644 index 00000000..c87d6096 --- /dev/null +++ b/scripts/run_coverage.sh @@ -0,0 +1,11 @@ +#!/bin/bash + +# Run pytest with coverage +pytest tests --cov --cov-report=html:htmlcov + +# Open the coverage report in the default browser +if command -v open > /dev/null; then + open htmlcov/index.html +else + echo "Coverage report generated at: htmlcov/index.html" +fi \ No newline at end of file