aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2023-05-31 01:30:13 +0200
committerHugo Hörnquist <hugo@lysator.liu.se>2023-05-31 01:30:13 +0200
commitb6619891b59cd45969c3d259275428221072842b (patch)
tree75ec3ca9654fecb2230add24a4b245ab9e34a39c
parentStart adding hyperlinks. (diff)
downloadmuppet-strings-b6619891b59cd45969c3d259275428221072842b.tar.gz
muppet-strings-b6619891b59cd45969c3d259275428221072842b.tar.xz
Use pytest coverage.
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index cf85308..2cbbe58 100644
--- a/Makefile
+++ b/Makefile
@@ -9,8 +9,11 @@ check:
flake8 muppet
mypy -p muppet
+# TODO only require coverage if `python -m pytest -VV | grep pytest-cov` return true
+PYTEST_FLAGS = --cov=muppet --cov-branch --cov-report=html
+
test:
- python -m pytest
+ python -m pytest $(PYTEST_FLAGS) tests
clean:
-rm -r output