Store coverage outside src and display branch coverage

This commit is contained in:
Gabriel Augendre 2022-02-24 20:54:11 +01:00
parent 877a123be2
commit 328aa50acc

View file

@ -28,9 +28,10 @@ def test(ctx: Context) -> None:
def test_cov(ctx: Context) -> None: def test_cov(ctx: Context) -> None:
with ctx.cd(SRC_DIR): with ctx.cd(SRC_DIR):
ctx.run( ctx.run(
"pytest --cov=. --cov-report term-missing:skip-covered", "pytest --cov=. --cov-branch --cov-report term-missing:skip-covered",
pty=True, pty=True,
echo=True, echo=True,
env={"COVERAGE_FILE": BASE_DIR / ".coverage"},
) )