Store coverage outside src and display branch coverage

pull/2/head
Gabriel Augendre 6 months ago
parent 877a123be2
commit 328aa50acc
  1. 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"},
)

Loading…
Cancel
Save