Store coverage outside src and display branch coverage
This commit is contained in:
parent
877a123be2
commit
328aa50acc
1 changed files with 2 additions and 1 deletions
3
tasks.py
3
tasks.py
|
@ -28,9 +28,10 @@ def test(ctx: Context) -> None:
|
|||
def test_cov(ctx: Context) -> None:
|
||||
with ctx.cd(SRC_DIR):
|
||||
ctx.run(
|
||||
"pytest --cov=. --cov-report term-missing:skip-covered",
|
||||
"pytest --cov=. --cov-branch --cov-report term-missing:skip-covered",
|
||||
pty=True,
|
||||
echo=True,
|
||||
env={"COVERAGE_FILE": BASE_DIR / ".coverage"},
|
||||
)
|
||||
|
||||
|
||||
|
|
Reference in a new issue