diff --git a/Makefile b/Makefile index 598e315..281c6f8 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,7 @@ VAR_DIR ?= /var/lib/repoapi RESULTS ?= ./reports +CACHE_DIR ?= $(RESULTS)/.pytest_cache + # do nothing by default all: @@ -19,10 +21,12 @@ venv_dev: requirements/dev.txt test: test_templates RESULTS=$(RESULTS) pytest-3 -ra --junitxml=$(RESULTS)/junit.xml \ + -o cache_dir=$(CACHE_DIR) \ --cov=. --cov-report=xml:$(RESULTS)/coverage.xml --pep8 test_pylint: RESULTS=$(RESULTS) pytest-3 --junitxml=$(RESULTS)/junit.xml \ + -o cache_dir=$(CACHE_DIR) \ --pylint --pylint-rcfile=pylint.cfg --pylint-jobs=4 test_templates: