mitogen/run_tests

21 lines
416 B
Plaintext
Executable File

#/usr/bin/env bash
echo '----- ulimits -----'
ulimit -a
echo '-------------------'
echo
set -o errexit
set -o nounset
set -o pipefail
UNIT2="$(which unit2)"
coverage erase
coverage run "${UNIT2}" discover \
--start-directory "tests" \
--pattern '*_test.py' \
"$@"
coverage html
echo coverage report is at "file://$(pwd)/htmlcov/index.html"