You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
335 B
Plaintext
15 lines
335 B
Plaintext
7 years ago
|
#/bin/sh
|
||
7 years ago
|
set -o errexit
|
||
|
set -o nounset
|
||
|
set -o pipefail
|
||
7 years ago
|
|
||
|
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"
|