Update test.sh and test-cov-html.sh to run tests with pytest --cov

This commit is contained in:
Yurii Motov
2026-02-24 18:09:13 +01:00
parent ef128efaed
commit e13ffa2a21
3 changed files with 2 additions and 4 deletions

View File

@@ -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",

View File

@@ -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 ${@}

View File

@@ -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/ ${@}