prole/run_with_coverage.sh

16 lines
492 B
Bash
Executable File

#!/bin/bash
# Run the Prole installer with execution instrumentation (coverage)
# This helps identify unused code paths during manual testing/usage.
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PYTHON="$SCRIPT_DIR/bin/python"
export PYTHONPATH="$SCRIPT_DIR:${PYTHONPATH:-}"
"$PYTHON" -m coverage run -m knoe.ui.screens "$@"
"$PYTHON" -m coverage report -m
"$PYTHON" -m coverage html
echo "Execution instrumentation report generated in $SCRIPT_DIR/htmlcov/index.html"