forked from test_framework/pytest-bdd
Use dynamic context in coverage (shows what test function uses which line)
This commit is contained in:
parent
1ebbf1e5ed
commit
11e1e23e62
|
@ -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]
|
||||||
|
|
Loading…
Reference in New Issue