aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-22 23:11:18 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-22 23:11:26 -0700
commit943432b022b521da4ebf1b7a5760b459b44f52f0 (patch)
treef75f333a1f56b1da60aaa2cd811f4856dac605f2
parent031f51752e79dbdde47bbc95fe6b3600c9ec711a (diff)
downloadsandcrawler-943432b022b521da4ebf1b7a5760b459b44f52f0.tar.gz
sandcrawler-943432b022b521da4ebf1b7a5760b459b44f52f0.zip
make: coverage report and HTML in one go
-rw-r--r--python/.gitignore1
-rw-r--r--python/Makefile6
2 files changed, 2 insertions, 5 deletions
diff --git a/python/.gitignore b/python/.gitignore
index d53fac8..9b0fdb2 100644
--- a/python/.gitignore
+++ b/python/.gitignore
@@ -1,3 +1,4 @@
*part-000*
*.tar.gz
*.tsv.gz
+htmlcov/
diff --git a/python/Makefile b/python/Makefile
index 43ec144..f783d0e 100644
--- a/python/Makefile
+++ b/python/Makefile
@@ -29,8 +29,4 @@ test: lint ## Run all tests and lints
.PHONY: coverage
coverage: ## Run all tests with coverage
- pipenv run pytest --cov
-
-.PHONY: coverage-html
-coverage-html: ## Run all tests with coverage, HTML report output
- pipenv run pytest --cov --cov-report html
+ pipenv run pytest --cov --cov-report=term --cov-report=html