mirror of
https://github.com/fastapi/fastapi.git
synced 2026-03-06 16:06:49 -05:00
Update test.sh and test-cov-html.sh to run tests with pytest --cov
This commit is contained in:
@@ -243,7 +243,6 @@ source = [
|
||||
]
|
||||
relative_files = true
|
||||
context = '${CONTEXT}'
|
||||
dynamic_context = "test_function"
|
||||
omit = [
|
||||
"tests/benchmarks/*",
|
||||
"docs_src/response_model/tutorial003_04_py39.py",
|
||||
|
||||
@@ -3,5 +3,4 @@
|
||||
set -e
|
||||
set -x
|
||||
|
||||
bash scripts/test.sh ${@}
|
||||
bash scripts/coverage.sh
|
||||
bash scripts/test.sh --cov --cov-context=test --cov-report=term-missing --cov-report=html ${@}
|
||||
|
||||
@@ -4,4 +4,4 @@ set -e
|
||||
set -x
|
||||
|
||||
export PYTHONPATH=./docs_src
|
||||
coverage run -m pytest tests scripts/tests/ ${@}
|
||||
pytest -n auto --dist loadgroup tests scripts/tests/ ${@}
|
||||
|
||||
Reference in New Issue
Block a user