Skip to content

Commit d01e301

Browse files
author
renaud gaudin
committed
Split test and coverage in tasks
Use separate tasks for `test` and `coverage` in invoke's tasks as the former is much more common and doesn't require coverage and pytest-cov dependencies.
1 parent 2b8b016 commit d01e301

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tasks.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ def build_ext(c):
1515

1616
@task
1717
def test(c):
18+
c.run("python -m pytest --color=yes --ff .")
19+
20+
21+
@task
22+
def coverage(c):
1823
c.run(
1924
"python -m pytest --color=yes --ff "
2025
"--cov=libzim --cov-config=.coveragerc "

0 commit comments

Comments
 (0)