⚙️ 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 EhlertandSebastián Ramírez authored and GitHub committed 2024-08-15 20:57:38 -05:00
1 parent e8f7bf0ad5
commit 0aaaed581e
2 files changed
+2 -1

No files matched your search

+1
View File
@@ -184,6 +184,7 @@ source = [
"fastapi"
]
context = '${CONTEXT}'
dynamic_context = "test_function"
omit = [
"docs_src/response_model/tutorial003_04.py",
"docs_src/response_model/tutorial003_04_py310.py",
+1 -1
View File
@@ -6,4 +6,4 @@ set -x
bash scripts/test.sh ${@}
coverage combine
coverage report --show-missing
coverage html
coverage html --show-contexts