Browse Source

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

Co-authored-by: Sebastián Ramírez <[email protected]>
pull/12028/head
Sławomir Ehlert 8 months ago
committed by GitHub
parent
commit
0aaaed581e
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      pyproject.toml
  2. 2
      scripts/test-cov-html.sh

1
pyproject.toml

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

2
scripts/test-cov-html.sh

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

Loading…
Cancel
Save