File indexing completed on 2025-01-05 04:00:33
0001 #!/bin/bash 0002 HERE="$(dirname "$(readlink -f "${BASH_SOURCE[0]}")")" 0003 0004 if [ "$#" -gt 0 ] 0005 then 0006 python3 -m unittest "$@" 0007 elif which coverage &>/dev/null 0008 then 0009 coverage erase 0010 coverage run --branch --source="$HERE/lib" -m unittest discover -t "$HERE" -s test && \ 0011 coverage html && \ 0012 coverage report --skip-covered && \ 0013 echo "file://$HERE/htmlcov/index.html" 0014 else 0015 python3 -m unittest discover -t "$HERE" -s test 0016 fi