chore: split test and coverage tasks

This commit is contained in:
jo 2022-12-07 11:42:16 +01:00 committed by Kyle Robbertze
parent 33e13e877e
commit 5738edb49c
16 changed files with 37 additions and 21 deletions

View file

@ -55,13 +55,18 @@ install: $(VENV)
.PHONY: .pytest
.pytest: $(VENV)
$(VENV)/bin/pytest -v \
$(VENV)/bin/pytest \
--numprocesses=$(CPU_CORES) \
--color=yes \
--color=yes
.PHONY: .coverage
.coverage: $(VENV)
$(VENV)/bin/pytest \
--numprocesses=$(CPU_CORES) \
--cov \
--cov-config=pyproject.toml \
--cov-report=term \
--cov-report=xml:./coverage.xml \
$(PYTEST_ARG)
--cov-report=xml
.PHONY: .clean
.clean: