chaind-eth/run_coverage.sh
2021-07-17 07:39:55 +02:00

14 lines
260 B
Bash

#!/bin/bash
#set -e
#set -x
#export PYTHONPATH=${PYTHONPATH:.}
#for f in `ls tests/*.py`; do
# python $f
#done
#set +x
#set +e
COVERAGE_MINIMUM=${COVERAGE_MINIMUM:-90}
coverage run -m unittest tests/test_*.py
coverage report -m --fail-under $COVERAGE_MINIMUM