diff options
author | Jeff Forcier <jeff@bitprophet.org> | 2021-10-01 21:04:34 -0400 |
---|---|---|
committer | Jeff Forcier <jeff@bitprophet.org> | 2021-10-01 22:04:36 -0400 |
commit | aac13fb192d3f4a5ca01026aa544d29a2c0dcfb1 (patch) | |
tree | 580ad40e31648606526ad7488c92f611786771ff /tasks.py | |
parent | 2160deed9135e3a45294ed3a5b4c7215a0c83567 (diff) |
Codecov support
Diffstat (limited to 'tasks.py')
-rw-r--r-- | tasks.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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 |