From aef86e64b5efecd85aaa600d9a4c2cc9cd9126fb Mon Sep 17 00:00:00 2001 From: Aineopintojen-harjoitustyo-Algoritmit-j Date: Wed, 6 Mar 2024 23:07:36 +0200 Subject: dev.sh recursion --- dev.sh | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/dev.sh b/dev.sh index 7f6e249..10988ab 100755 --- a/dev.sh +++ b/dev.sh @@ -36,25 +36,26 @@ case $1 in poetry run python3 -m pylint src/miinaharava/ ;; + coverage) + poetry run python3 -m coverage run --branch -m pytest -v + ;; + covhtml) - poetry run python3 -m coverage run --branch -m pytest -v \ + $0 coverage \ && poetry run python3 -m coverage html ;; covxml) - poetry run python3 -m coverage run --branch -m pytest -v \ + $0 coverage \ && poetry run python3 -m coverage xml ;; covff) - poetry run python3 -m coverage run --branch -m pytest -v \ - && poetry run python3 -m coverage html \ + $0 covhtml \ && firefox htmlcov/index.html ;; - all) poetry run python3 -m coverage run --branch -m pytest -v \ - && poetry run python3 -m coverage html \ - && firefox htmlcov/index.html \ + all) $0 covff \ && poetry run python3 -m pylint src/miinaharava/ ;; -- cgit v1.2.3