aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-22 18:35:39 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-22 18:35:39 -0700
commitb5cb2787f7c5d628bd1976dcd6d57b537f2e646c (patch)
tree6329a336a8e89a57e953c728fb36d01b27cb828a
parent7fc41ef2440a935d9b5f6601f490e1ece343fb1c (diff)
downloadfatcat-scholar-b5cb2787f7c5d628bd1976dcd6d57b537f2e646c.tar.gz
fatcat-scholar-b5cb2787f7c5d628bd1976dcd6d57b537f2e646c.zip
make: have coverage generate both terminal and HTML reports
-rw-r--r--.gitignore1
-rw-r--r--Makefile2
2 files changed, 2 insertions, 1 deletions
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