fastapi/scripts
Sławek Ehlert 84bc7c6f90 Record and show contexts when using coverage
As documented in https://coverage.readthedocs.io/en/7.5.0/contexts.html#dynamic-contexts

While working on #11517 I wanted to see which test
is best to modify for the fix.
One way to easily find this out is to see which line is covered
by which test.

This PR adds a dynamic context setting
and makes them show on the HTML coverage report.
The contexts are test function names.

NOTE pytest-cov plugin has even better support
for pytest test names as coverage contexts,
but I think this PR is already an imporovement.
2024-05-02 15:16:32 +02:00
..
playwright/separate_openapi_schemas Add support for disabling the separation of input and output JSON Schemas in OpenAPI with Pydantic v2 (#10145) 2023-08-25 21:10:22 +02:00
docs.py 🔨 Verify `mkdocs.yml` languages in CI, update `docs.py` (#11009) 2024-01-22 20:26:14 +01:00
format.sh 🔨 Update internal scripts and remove unused ones (#11499) 2024-04-29 17:03:14 -07:00
lint.sh 🔨 Update internal scripts and remove unused ones (#11499) 2024-04-29 17:03:14 -07:00
mkdocs_hooks.py 👷 Adopt Ruff format (#10517) 2023-10-25 00:26:06 +04:00
test-cov-html.sh Record and show contexts when using coverage 2024-05-02 15:16:32 +02:00
test.sh ⬇️ Separate requirements for development into their own requirements.txt files, they shouldn't be extras (#9655) 2023-06-11 23:38:15 +02:00