From d1a0ff1f6939752dae404e7860b8bc9110e5e3f7 Mon Sep 17 00:00:00 2001 From: Ned Batchelder <ned@edx.org> Date: Wed, 2 Sep 2020 12:48:09 -0400 Subject: [PATCH] Help to report on coverage --- .coveragerc | 2 +- Makefile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.coveragerc b/.coveragerc index 942f73e..970aebf 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 49326f4..6eca1de 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 -- GitLab