From aac13fb192d3f4a5ca01026aa544d29a2c0dcfb1 Mon Sep 17 00:00:00 2001 From: Jeff Forcier Date: Fri, 1 Oct 2021 21:04:34 -0400 Subject: Codecov support --- tasks.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'tasks.py') diff --git a/tasks.py b/tasks.py index 3d2fdf65..bfa43ae8 100644 --- a/tasks.py +++ b/tasks.py @@ -75,11 +75,15 @@ def test( @task -def coverage(ctx, opts=""): +def coverage(ctx, opts="", codecov=False): """ Execute all tests (normal and slow) with coverage enabled. """ - return test(ctx, coverage=True, include_slow=True, opts=opts) + test(ctx, coverage=True, include_slow=True, opts=opts) + # Cribbed from invocations.pytest.coverage for now + if codecov: + ctx.run("coverage xml") + ctx.run("codecov") @task -- cgit v1.2.1