diff --git a/.coveragerc b/.coveragerc index 942f73e162edbb4d483f3a9a04d6f2a743bb2d6d..970aebfdd95a456c7f8f63564afa81f908011e25 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,4 +2,4 @@ [run] data_file = .coverage source = lti_consumer -omit = */urls.py, *tests* +omit = */urls.py diff --git a/Makefile b/Makefile index 49326f459c4ab29b41cd1b720a465a68a2b1fe63..6eca1de560788b8fd98f88d510a3de4d1695204b 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -.PHONY: help all install-test install compile-sass quality test upgrade +.PHONY: help all install-test install compile-sass quality test covreport upgrade help: ## display this help message @echo "Please use \`make <target>' where <target> is one of" @@ -23,6 +23,9 @@ test: ## Run the tests rm -rf .coverage python -m coverage run --rcfile=.coveragerc ./test.py --noinput +covreport: ## Show the coverage results + python -m coverage report -m --skip-covered + upgrade: export CUSTOM_COMPILE_COMMAND=make upgrade upgrade: ## update the requirements/*.txt files with the latest packages satisfying requirements/*.in pip install -q -r requirements/pip_tools.txt