2018-04-01 00:42:31 +00:00
|
|
|
#/bin/sh
|
2018-04-01 01:11:37 +00:00
|
|
|
set -o errexit
|
|
|
|
set -o nounset
|
|
|
|
set -o pipefail
|
2018-04-01 00:42:31 +00:00
|
|
|
|
|
|
|
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"
|