mirror of
https://github.com/dredx/prole.git
synced 2026-09-23 09:13:58 +00:00
16 lines
491 B
Bash
Executable File
16 lines
491 B
Bash
Executable File
#!/bin/bash
|
|
# Run the Knoe 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"
|