Use dynamic context in coverage (shows what test function uses which line)

This commit is contained in:
Alessio Bogon 2022-11-05 10:12:43 +01:00
parent 1ebbf1e5ed
commit 11e1e23e62
1 changed files with 4 additions and 0 deletions

View File

@ -67,12 +67,16 @@ exclude_lines = [
"if TYPE_CHECKING:",
"if typing\\.TYPE_CHECKING:",
]
[tool.coverage.html]
show_contexts = true
[tool.coverage.run]
branch = true
include =[
"src/pytest_bdd/*",
"tests/*",
]
dynamic_context = "test_function"
[tool.mypy]