diff --git a/scripts/test-cov-html.sh b/scripts/test-cov-html.sh new file mode 100644 index 000000000..7baa0f7e3 --- /dev/null +++ b/scripts/test-cov-html.sh @@ -0,0 +1,6 @@ +#!/usr/bin/env bash + +set -e +set -x + +bash scripts/test.sh --cov-report=html diff --git a/scripts/test.sh b/scripts/test.sh index 290fa0cc7..79f66c321 100644 --- a/scripts/test.sh +++ b/scripts/test.sh @@ -7,8 +7,7 @@ export VERSION_SCRIPT="import sys; print('%s.%s' % sys.version_info[0:2])" export PYTHON_VERSION=`python -c "$VERSION_SCRIPT"` export PYTHONPATH=./docs/src -# PYTHONPATH=. pytest --cov=fastapi --cov=tests --cov-fail-under=100 --cov-report=term-missing ${@} --cov-report=html -pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@} --cov-report=html +pytest --cov=fastapi --cov=tests --cov=docs/src --cov-report=term-missing ${@} mypy fastapi --disallow-untyped-defs if [ "${PYTHON_VERSION}" = '3.7' ]; then echo "Skipping 'black' on 3.7. See issue https://github.com/ambv/black/issues/494"