X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/7034fd72116ae45cce6bd708d19e3e19db71e58d..895ec0cb51089eb337b594fb94019378bf0476ef:/Makefile?ds=inline diff --git a/Makefile b/Makefile index 247a24da..2b3de6e4 100644 --- a/Makefile +++ b/Makefile @@ -27,13 +27,13 @@ test: .ONESHELL: test_full: - cd src - coverage run --branch --source='.' ./manage.py test --settings=redakcja.settings.test_full; true - coverage html -d ../htmlcov.new - rm -rf ../htmlcov - mv ../htmlcov.new ../htmlcov - coverage report - rm .coverage + mkdir -p htmlcov + UID=$(UID) GID=$(GID) $(TEST_COMPOSE) run --rm --build test sh -c '\ + python -Wall -m coverage run --branch --source=. \ + ./manage.py test --settings=redakcja.settings.test_full $(ARGS); s=$$?; \ + coverage report --skip-covered; coverage html -d /app/htmlcov; exit $$s'; \ + status=$$?; $(TEST_COMPOSE) down; exit $$status + shell: