From 328aa50acc97546c0bc34dd0640d98daa8dbae7c Mon Sep 17 00:00:00 2001 From: Gabriel Augendre Date: Thu, 24 Feb 2022 20:54:11 +0100 Subject: [PATCH] Store coverage outside src and display branch coverage --- tasks.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tasks.py b/tasks.py index 21c9148..63f937b 100644 --- a/tasks.py +++ b/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"}, )