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 TYPE_CHECKING:",
"if typing\\.TYPE_CHECKING:", "if typing\\.TYPE_CHECKING:",
] ]
[tool.coverage.html]
show_contexts = true
[tool.coverage.run] [tool.coverage.run]
branch = true branch = true
include =[ include =[
"src/pytest_bdd/*", "src/pytest_bdd/*",
"tests/*", "tests/*",
] ]
dynamic_context = "test_function"
[tool.mypy] [tool.mypy]