⚙️ Record and show test coverage contexts (what test covers which line) (#11518)

Co-authored-by: Sebastián Ramírez <tiangolo@gmail.com>
This commit is contained in:
Sławomir Ehlert 2024-08-16 03:57:38 +02:00 committed by GitHub
parent e8f7bf0ad5
commit 0aaaed581e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 1 deletions

View File

@ -184,6 +184,7 @@ source = [
"fastapi" "fastapi"
] ]
context = '${CONTEXT}' context = '${CONTEXT}'
dynamic_context = "test_function"
omit = [ omit = [
"docs_src/response_model/tutorial003_04.py", "docs_src/response_model/tutorial003_04.py",
"docs_src/response_model/tutorial003_04_py310.py", "docs_src/response_model/tutorial003_04_py310.py",

View File

@ -6,4 +6,4 @@ set -x
bash scripts/test.sh ${@} bash scripts/test.sh ${@}
coverage combine coverage combine
coverage report --show-missing coverage report --show-missing
coverage html coverage html --show-contexts