mirror of https://github.com/tiangolo/fastapi.git
⚙️ 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:
parent
e8f7bf0ad5
commit
0aaaed581e
|
|
@ -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",
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ set -x
|
|||
bash scripts/test.sh ${@}
|
||||
coverage combine
|
||||
coverage report --show-missing
|
||||
coverage html
|
||||
coverage html --show-contexts
|
||||
|
|
|
|||
Loading…
Reference in New Issue