]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:white_check_mark: Add test-cov-html script for local coverage
authorSebastián Ramírez <tiangolo@gmail.com>
Sat, 22 Dec 2018 03:42:24 +0000 (07:42 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Sat, 22 Dec 2018 03:42:24 +0000 (07:42 +0400)
analysis and debugging

scripts/test-cov-html.sh [new file with mode: 0644]
scripts/test.sh

diff --git a/scripts/test-cov-html.sh b/scripts/test-cov-html.sh
new file mode 100644 (file)
index 0000000..7baa0f7
--- /dev/null
@@ -0,0 +1,6 @@
+#!/usr/bin/env bash
+
+set -e
+set -x
+
+bash scripts/test.sh --cov-report=html
index 290fa0cc727b6ef8421c66355403c63d156d8acd..79f66c3218c8971ea939b1bb87045fada4c709cf 100644 (file)
@@ -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"