From b5cb2787f7c5d628bd1976dcd6d57b537f2e646c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 22 Oct 2020 18:35:39 -0700 Subject: make: have coverage generate both terminal and HTML reports --- .gitignore | 1 + Makefile | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index f44bf22..7047762 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ data/ fulltext_web/ +htmlcov/ *.o *.a diff --git a/Makefile b/Makefile index 18e36d1..b3617c6 100644 --- a/Makefile +++ b/Makefile @@ -29,7 +29,7 @@ test: lint ## Run all tests and lints .PHONY: coverage coverage: lint ## Run all tests with coverage - PIPENV_DONT_LOAD_ENV=1 ENV_FOR_DYNACONF=test pipenv run pytest --cov + PIPENV_DONT_LOAD_ENV=1 ENV_FOR_DYNACONF=test pipenv run pytest --cov --cov-report=term --cov-report=html .PHONY: dev dev: ## Run web service locally, with reloading -- cgit v1.2.3