summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-03-06 23:07:36 +0200
committerAineopintojen-harjoitustyo-Algoritmit-j <github-hy-tiralabra@v.hix.fi>2024-03-06 23:07:36 +0200
commitaef86e64b5efecd85aaa600d9a4c2cc9cd9126fb (patch)
tree2d6c12a96d2467bda29ddd4dbeb1d6caa2cf868f
parent0b555d6bc436e9fc5ae8aa8605d1cdc5d6217c51 (diff)
dev.sh recursion
-rwxr-xr-xdev.sh15
1 files 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/
;;