From b6619891b59cd45969c3d259275428221072842b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se> Date: Wed, 31 May 2023 01:30:13 +0200 Subject: [PATCH] Use pytest coverage. --- Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- GitLab